Part Number Hot Search : 
NZH16C JMC261 UPC2903 4CMC19 FZT749NL 55100 62256 TP533507
Product Description
Full Text Search
 

To Download KS8993F Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  KS8993F/KS8993Fl single chip fast ethernet media converter with ts-1000 oam revision 1.3 micrel is a registered tradem ark of micrel, inc. micrel inc. ? 2180 fortune drive ? san jose, ca 95131 ? usa ? tel +1 ( 408 ) 944-0800 ? fax + 1 (408) 474-1000 ? http:// www.micrel.com june 2009 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 general description the micrel KS8993F is the industry?s first single chip fast ethernet media converter with built-in oam functions. the KS8993F integrates three macs, two phys, oam, frame buffer and high performance switch into a single chip. it is ideal for use in 100base-fx to 10base-t or 100base- tx conversion in the fttx market. the KS8993F provides remote loop back and oam (operation, administration and maintenance) to manage subscriber access network fr om carrier center side to terminal side. the KS8993F supports advanced features such as rate limiting, force flow control and link transparency. the KS8993F with built-in layer 2 switch capability will filter packets and forward them to valid destination. it will discard any unwanted frames and frames with invalid destination. the KS8993Fl is the single supply version with all the identical rich features of the KS8993F. features ? first single-chip 10base-t/100base-tx to 100base-fx media converter with ts-1000 oam ? integrated 3-port 10/100 ethernet switch with 3 macs and 2 phys ? unique user defined register (udr) feature brings oam to low cost/complexity nodes ? automatic mdi/mdi-x crossover with disable and enable option ? non-blocking switch fabric assures fast packet delivery by utilizing an 1k mac address lookup table and a store-and-forward architecture ? comprehensive led indicator support for link, activity, full/half duplex and 10/100 speed ? full complement of mii/sni, spi, miim, smi and i2c interfaces ? low power dissipation:< 800mw (includes phy transmit drivers) block diagram 1k look-up engine queue management buffer management frame buffers fifo, flow control, vlan tagging ,priority sni spi eeprom interface led drivers spi interface KS8993F / KS8993Fl mib counters mii / sni interface p1 led[3:0] p2 led[3:0] control registers i2c bus miim interface smi interface strap in configuration pins 10/100 mac 1 10/100 t/tx/fx phy1 auto mdi/mdi-x 10/100 mac 2 10/100 t/tx/fx phy2 auto mdi/mdi-x 10/100 mac 3 o a m to control registers
micrel, inc. KS8993F/fl june 2009 2 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 features (continued) ? oam features: ? supports oam sub-layer which conforms to ts-1000 specification from ttc (t elecommunication technology committee) ? sends and receives oam frames to center or terminal side ? loop back mode to support loop back packet from center side to terminal side ? far-end fault detection with disable and enable ? link transparency to indicate the link down from link partner ? comprehensive configuration register access: ? serial management interface (smi) to all internal registers ? mii management (miim) interface to phy registers ? spi and i2c interface to all internal registers ? i/0 pins strapping and eeprom to program selective registers in unmanaged switch mode ? control registers configurabl e on the fly (port-priority, 802.1p/d/q, an?) ? qos / cos packets prioritization support ? per-port, 802.1p and diffserv based ? re-mapping of 802.1p priority field per-port basis ? advanced switch features ? ieee 802.1q vlan support for up to 16 groups (full- range of vlan id) ? vlan id tag/untag options, per-port basis ? ieee 802.1p/q tag insertion or removal on a per port basis (egress) ? programmable rate limiting from 0 to 100 mbps at the ingress & egress port, rate options for high & low priority, per port basis ? broadcast storm protection with % control (global & per- port basis) ? double tagging support ? switch management features: ? port mirroring/monitoring/sniffing: ingress and/or egress traffic to any port or mii ? mib (management information base) counters for fully compliant statistics gathering, 34 mib counters per port ? full-chip hardware power-dow n (register configuration not saved) ? per-port based software power-save on phy (idle link detection, register conf iguration preserved) ? 0.18um cmos technology ? voltages: core 1.8v i/o and transceiver 3.3v ? available in 128-pin pqfp ordering information part number pb-free standard temperature range package ksz8993f KS8993F 0 o ? 70 o c 128- pqfp ksz8993fl KS8993Fl 0 o ? 70 o c 128- pqfp
micrel, inc. KS8993F/fl june 2009 3 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 revision history revision date summary of changes p0 1/14/03 preliminary information p1 2/11/03 added separate link and activity on port 1 and port 2?s led (pin #20, pin #23, pin #25). added disable auto mdi/mdix (pin #28) added select of mdi and mdix (pin #29) p2 4/1/03 updated register information p3 12/4/03 started overhaul of datasheet. updated strap option definition for pin #85. renamed supply voltages and ground refe rences to match schematics. corrected remote loop back path. updated mc registers descriptions. changed 3.3v voltage pins to (3.3v or 2.5v). p4 3/11/04 completed overhaul of datasheet. revised datasheet format. updated KS8993F block diagram. updated feature highlights. updated mc registers descriptions. updated electrical characterist ics (vih, vil, voh, vol). p5 3/23/04 updated mc loop back description in pin #19 and register 11 bits[3:2], and path in loop back diagram. updated flow diagram for destination address resolution flowchart, stage2. changed s10 status bit from ro to r/w in register 81 bit[2]. added KS8993Fl to general description (page 1) and functional description overview (section 2.1). updated pin description for pin 22 to the following: vddc : for KS8993F, this is an input power pin for the 1.8v digital core vdd. vout_1v8 : for KS8993Fl, this is an 1.8v output power pin to supply the KS8993Fl?s input power pins: vddap (pin 63), vddc (pins 91, 123) and vdda (pins 38, 43, 57). improved/clarified pin description. 1.0 8/26/04 updated ppm spec for 25 mhz crystal/oscillator. improved/clarified pin description for p1lcrcd (pin 18), p2mdix (pin 29) and mdio (pin 95). corrected aging time. removed loop back support from miim and port control registers, so that there is no confusion with mc loop back which is us ed exclusively in KS8993F application. updated hwpovr description in section 2.2.5. corrected default definition for fef in section 2.3.6, and miim and port control registers. added register note to indicate port sniffing is not supported if the unicast packets can cross vlan boundary bit is set. improved/clarified switch/phy registers descriptions for force mdix and crc drop. improved/clarified mc regist ers descriptions for remote command (registers 74, 75, 76), my status (registers 80, 81) and ln k partner status (registers 88, 89). added register note to set register 85: my model info (1) to values of 0x22, 0x26, 0x2a and 0x2e if the remote command feature is used. updated mib counters descriptions to indicate counter overflow must be tracked by application. 1.1 4/7/05 corrected vddio, vddatx, vddarx supply pins to 3.3v only. updated reset timing requirement. corrected 10base-t transmitter jitters added. 1.2 5/22/06 removed industrial temperature line from features and ordering info. 1.3 6/25/09 add the parts ksz8993f, ksz8993fl on the order information
micrel, inc. KS8993F/fl june 2009 4 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 table of contents 1 signal description............................................................................................................. ............9 1.1 KS8993F pin diagram ............................................................................................................ ............................................... 9 1.2 pin description and i/o assignment ............................................................................................. ....................................... 10 2 functional description ......................................................................................................... .......20 2.1 overview ....................................................................................................................... ....................................................... 20 2.2 media converte r function....................................................................................................... ............................................. 20 2.2.1 oam (operations, administrati on, and management) frame format .................................................................. ... 20 2.2.2 mc (media converter) mode ...................................................................................................... ............................. 22 2.2.3 mc loop back function .......................................................................................................... ................................ 22 2.2.4 registers for media converter functions ........................................................................................ ........................ 23 2.2.5 unique i/o feature definition .................................................................................................. ................................ 23 2.2.6 port 1 led indicator definition ................................................................................................ ................................ 24 2.2.7 port 2 led indicator definition ................................................................................................ ................................ 24 2.3 physical tr ansceiv er ........................................................................................................... ................................................. 25 2.3.1 100base-tx transmit ............................................................................................................ ................................ 25 2.3.2 100base-tx receive ............................................................................................................. ................................ 25 2.3.3 pll clock sy nthesizer .......................................................................................................... .................................. 25 2.3.4 scrambler/de-scrambler (100base-tx only) ....................................................................................... .................. 25 2.3.5 100base-fx operation and signal detection ...................................................................................... .................. 25 2.3.6 100base-fx far-end fault (fef) ................................................................................................. ......................... 26 2.3.7 10base-t transmit and receive.................................................................................................. .......................... 26 2.3.8 power management............................................................................................................... .................................. 27 2.3.9 auto mdi/mdi-x crossover ....................................................................................................... .............................. 27 2.3.10 auto negotiation ............................................................................................................... ....................................... 29 2.4 mac and switch function ........................................................................................................ ............................................ 29 2.4.1 address look up ................................................................................................................ ..................................... 29 2.4.2 learning....................................................................................................................... ............................................ 30 2.4.3 migration...................................................................................................................... ............................................ 30 2.4.4 aging .......................................................................................................................... ............................................. 30 2.4.5 forwarding..................................................................................................................... .......................................... 30 2.4.6 switching engine ............................................................................................................... ...................................... 33 2.4.7 mac operation.................................................................................................................. ....................................... 33 2.4.8 back-off algorithm ............................................................................................................. ...................................... 33 2.4.9 late collis ion ................................................................................................................. .......................................... 33 2.4.10 illegal frames ................................................................................................................. ......................................... 33 2.4.11 flow control ................................................................................................................... ......................................... 33 2.4.12 half duplex back pressure...................................................................................................... ................................ 34 2.4.13 broadcast storm protection..................................................................................................... ................................ 34 2.5 mii interface operation ........................................................................................................ ................................................ 34 2.6 sni (7-wire) interface operation ............................................................................................... ........................................... 35 2.7 mii management interface (miim) ................................................................................................ ........................................ 36 2.8 serial management interface (smi) .............................................................................................. ....................................... 36 2.9 advanced switch function....................................................................................................... ............................................ 37 2.9.1 port mirroring support ......................................................................................................... .................................... 37 2.9.2 ieee 802.1q vlan support ....................................................................................................... ............................. 38 2.9.3 qos priority ................................................................................................................... .......................................... 39 2.9.4 rate limit support............................................................................................................. ...................................... 41 2.10 configuration interface........................................................................................................ ................................................. 41 2.10.1 i 2 c master serial bus configuration .............................................................................................. .......................... 42 2.10.2 i 2 c slave serial bus configuration ............................................................................................... ........................... 43 2.10.3 spi slave serial bus configuration ............................................................................................. ............................ 43 3 mii management (miim) registers .............................................................................................47 register 0: mii basic control ................................................................................................. ............................................. 47 register 1: mii basic status.................................................................................................. .............................................. 48 register 2: phyid high ........................................................................................................ ............................................. 48 register 3: phyid low......................................................................................................... ............................................. 48 register 4: auto-negotia tion advertisem ent ability ............................................................................ ................................ 49
micrel, inc. KS8993F/fl june 2009 5 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 5: auto-negotia tion link partner ability ............................................................................. ................................... 49 4 register map: switch, mc, & phy (8 bits registers) ..................................................................50 4.1 global regi sters............................................................................................................... .................................................... 51 register 0 (0x00): chip id0................................................................................................... .............................................. 51 register 1 (0x01): chip id1 / start switch.................................................................................... ....................................... 51 register 2 (0x02): global control 0........................................................................................... .......................................... 51 register 3 (0x03): global control 1........................................................................................... .......................................... 52 register 4 (0x04): global control 2........................................................................................... .......................................... 53 register 5 (0x05): global control 3........................................................................................... .......................................... 53 register 6 (0x06): global control 4........................................................................................... .......................................... 54 register 7 (0x07): global control 5........................................................................................... .......................................... 55 register 8 (0x08): global control 6........................................................................................... .......................................... 55 register 9 (0x09): global control 7........................................................................................... .......................................... 55 register 10 (0x0a): global control 8 .......................................................................................... ........................................ 55 register 11 (0x0b): global control 9 .......................................................................................... ........................................ 55 register 12 (0x0c): reserved register ......................................................................................... ..................................... 56 register 13 (0x0d): us er defined register 1................................................................................... ................................... 56 register 14 (0x0e): user defined register 2 ................................................................................... ................................... 57 register 15 (0x0f): us er defined register 3 ................................................................................... ................................... 57 4.2 port registers ................................................................................................................. ..................................................... 57 register 16 (0x10): port 1 control 0 .......................................................................................... ......................................... 57 register 17 (0x11): port 1 control 1 .......................................................................................... ......................................... 58 register 18 (0x12): port 1 control 2 .......................................................................................... ......................................... 58 register 19 (0x13): port 1 control 3 .......................................................................................... ......................................... 59 register 20 (0x14): port 1 control 4 .......................................................................................... ......................................... 59 register 21 (0x15): port 1 control 5 .......................................................................................... ......................................... 60 register 22 (0x16): port 1 control 6 .......................................................................................... ......................................... 60 register 23 (0x17): port 1 control 7 .......................................................................................... ......................................... 60 register 24 (0x18): port 1 control 8 .......................................................................................... ......................................... 60 register 25 (0x19): port 1 control 9 .......................................................................................... ......................................... 60 register 26 (0x1a): port 1 control 10 ......................................................................................... ........................................ 60 register 27 (0x1b): port 1 control 11 ......................................................................................... ........................................ 61 register 28 (0x1c): port 1 control 12 ......................................................................................... ........................................ 61 register 29 (0x1d): port 1 control 13 ......................................................................................... ........................................ 62 register 30 (0x1e): port 1 status 0 ........................................................................................... ......................................... 63 register 31 (0x1f): port 1 status 1........................................................................................... .......................................... 64 4.3 media converter registers ...................................................................................................... ............................................ 65 register 64 (0x40): phy address ............................................................................................... ........................................ 65 register 65 (0x41): center side status ........................................................................................ ...................................... 65 register 66 (0x42): center side command ....................................................................................... ................................. 66 register 67 (0x43): phy-sw initialize ......................................................................................... ....................................... 66 register 68 (0x44) : loop back setup1 .......................................................................................... ..................................... 68 register 69 (0x45) : loop back setup2 .......................................................................................... ..................................... 68 register 70 (0x46): loop back result counter for crc error.................................................................... ........................ 69 register 71 (0x47): loop back result counter for timeout...................................................................... .......................... 69 register 72 (0x48): loop back re sult counter for good packet.................................................................. ...................... 69 register 73 (0x49): additional st atus (center and terminal side) .............................................................. ........................ 69 register 74 (0x4a): remote command 1 .......................................................................................... ................................. 70 register 75 (0x4b): remote command 2 .......................................................................................... ................................. 70 register 76 (0x4c): remote command 3 .......................................................................................... ................................. 71 register 77 (0x4d): valid mc packet trans mitted counter....................................................................... ......................... 71 register 78 (0x4e): valid mc packet rece ived counter .......................................................................... .......................... 71 register 79 (0x4f): s hadow of 0x58h register .................................................................................. ................................ 71 register 80 (0x50): my status 1 (terminal and center side) .................................................................... .......................... 72 register 81 (0x51): my status 2............................................................................................... ........................................... 72 register 82 (0x52): my vendor info (1) ........................................................................................ ....................................... 73 register 83 (0x53): my vendor info (2) ........................................................................................ ....................................... 73 register 84 (0x54): my vendor info (3) ........................................................................................ ....................................... 73 register 85 (0x55): my model info (1)......................................................................................... ........................................ 73 register 86 (0x56): my model info (2)......................................................................................... ........................................ 73 register 87 (0x57): my model info (3)......................................................................................... ........................................ 73
micrel, inc. KS8993F/fl june 2009 6 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 88 (0x58): lnk partner status (1) .................................................................................... .................................... 74 register 89 (0x59): lnk partner status (2) .................................................................................... .................................... 74 register 90 (0x5a): lnk partner vendor info (1).............................................................................. ................................. 74 register 91 (0x5b): lnk partner vendor info (2)............................................................................... ................................. 74 register 92 (0x5c): lnk partner vendor info (3) ............................................................................... ................................ 74 register 93 (0x5d): lnk partner model info (1) ................................................................................ ................................. 74 register 94 (0x5e): lnk partner model info (2) ................................................................................ ................................. 74 register 95 (0x5f): lnk partner model info (3)................................................................................ .................................. 74 4.4 advanced contro l registers ..................................................................................................... ........................................... 75 register 96 (0x60): tos prio rity control register 0 ........................................................................... ................................ 75 register 97 (0x61): tos prio rity control register 1 ........................................................................... ................................ 75 register 98 (0x62): tos prio rity control register 2 ........................................................................... ................................ 75 register 99 (0x63): tos prio rity control register 3 ........................................................................... ................................ 75 register 100 (0x64): tos priority control register 4 .......................................................................... ............................... 75 register 101 (0x65): tos priority control register 5 .......................................................................... ............................... 75 register 102 (0x66): tos priority control register 6 .......................................................................... ............................... 75 register 103 (0x67): tos priority control register 7 .......................................................................... ............................... 75 register 104 (0x68): ma c address register 0 ................................................................................... ................................ 76 register 105 (0x69): ma c address register 1 ................................................................................... ................................ 76 register 106 (0x6a): ma c address register 2................................................................................... ................................ 76 register 107 (0x6b): ma c address register 3................................................................................... ................................ 76 register 108 (0x6c): ma c address register 4................................................................................... ................................ 76 register 109 (0x6d): ma c address register 5................................................................................... ................................ 76 register 110 (0x6e): indi rect access control 0 ................................................................................ .................................. 76 register 111 (0x6f): indi rect access control 1 ................................................................................ .................................. 76 register 112 (0x70): indi rect data register 8................................................................................. .................................... 77 register 113 (0x71): indi rect data register 7................................................................................. .................................... 77 register 114 (0x72): indi rect data register 6................................................................................. .................................... 77 register 115 (0x73): indi rect data register 5................................................................................. .................................... 77 register 116 (0x74): indi rect data register 4................................................................................. .................................... 77 register 117 (0x75): indi rect data register 3................................................................................. .................................... 77 register 118 (0x76): indi rect data register 2................................................................................. .................................... 77 register 119 (0x77): indi rect data register 1................................................................................. .................................... 77 register 120 (0x78): indi rect data register 0................................................................................. .................................... 77 register 121 (0x79): digi tal testing status 0................................................................................. ..................................... 77 register 122 (0x7a): digi tal testing status 1 ................................................................................. .................................... 77 register 123 (0x7b): digi tal testing control 0 ................................................................................ .................................... 78 register 124 (0x7c): digi tal testing control 1................................................................................ .................................... 78 register 125 (0x7d): a nalog testing control 0................................................................................. .................................. 78 register 126 (0x7e): anal og testing control 1................................................................................ .................................. 78 register 127 (0x7f): analog testing status .................................................................................... ................................... 78 4.5 static mac address table ....................................................................................................... ............................................ 78 4.6 vlan table..................................................................................................................... ..................................................... 79 4.7 dynamic mac address table ...................................................................................................... ........................................ 80 4.8 mib (management information base) counters..................................................................................... .............................. 81 5 electrical s pecifications ...................................................................................................... ........86 5.1 absolute maxi mum ra tings ....................................................................................................... .......................................... 86 5.2 recommended operat ing conditions ............................................................................................... ................................... 86 5.3 electrical char acterist ics..................................................................................................... ................................................. 87 5.4 100base-fx electrical specification............................................................................................ ....................................... 88 6 timing specifications.......................................................................................................... ........89 6.1 eeprom timing .................................................................................................................. ................................................ 89 6.2 sni timing ..................................................................................................................... ...................................................... 90 6.3 mii timing ..................................................................................................................... ....................................................... 91 6.3.1 mac mode mii timing ............................................................................................................ ................................. 91 6.3.2 phy mode mii timing............................................................................................................ .................................. 92 6.3.3 spi timing ..................................................................................................................... .......................................... 92 6.3.4 mdc/mdio timing................................................................................................................ ................................... 95 6.3.5 auto negotia tion ti ming ........................................................................................................ .................................. 96 6.4 reset timing ................................................................................................................... ..................................................... 97 6.5 reset circuit.................................................................................................................. ....................................................... 98
micrel, inc. KS8993F/fl june 2009 7 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 7 selection of isolation transformer ............................................................................................. .99 8 selection of crystal/oscillator................................................................................................ .....99 9 package information............................................................................................................ .....100
micrel, inc. KS8993F/fl june 2009 8 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 list of tables table 1: fx and tx mode selection............................................................................................. ..................................................... 26 table 2: mdi/mdi-x pin definition............................................................................................. ........................................................ 27 table 3: mii signals.......................................................................................................... ................................................................. 35 table 4: sni (7-wire) signals................................................................................................. ............................................................ 35 table 5: mii management interface fr ame format ................................................................................ ............................................. 36 table 6: serial management in terface (smi) frame format ....................................................................... ........................................ 37 table 7: fid+da look up in vlan mode.......................................................................................... ................................................. 39 table 8: fid+sa look up in vlan mode .......................................................................................... ................................................. 39 table 9: KS8993F spi connections.............................................................................................. .................................................... 44 table 10: format of stat ic mac table (8 entries) .............................................................................. ............................................... 79 table 11: format of static vlan table (16 entries)............................................................................ .............................................. 80 table 12: format of dynam ic mac table (1k entries)............................................................................ .......................................... 81 table 13: format of ?per port? mib counters................................................................................... ................................................. 82 table 14: port 1?s ?per port? mib counters indirect memory offsets............................................................ .................................... 82 table 15: format of ?all po rt dropped packet? mib counters .................................................................... ...................................... 84 table 16: ?all port dropped packet? mib counters indirect memory offsets...................................................... .............................. 84 table 17: eeprom timing parameters............................................................................................ ................................................ 89 table 18: sni timing parameters ............................................................................................... ...................................................... 90 table 19: mac mode m ii timing parameters ...................................................................................... ............................................. 91 table 20: phy mode mii timing parameters ...................................................................................... .............................................. 92 table 21: spi input timing parameters ......................................................................................... ................................................... 93 table 22: spi output timing parameters........................................................................................ .................................................. 94 table 23: reset timing parameters............................................................................................. ..................................................... 97 table 24: transformer selection criteria...................................................................................... ..................................................... 99 table 25: qualified single port magnetic ...................................................................................... .................................................... 99 table 26: crystal/oscilla tor selection criteria ............................................................................... .................................................... 99 list of figures figure 1: typical stra ight cable connection ................................................................................... .................................................. 28 figure 2: typical cro ssover cable connection .................................................................................. ............................................... 28 figure 3: auto negotiati on and parallel detection ............................................................................. ............................................... 29 figure 4: destination addre ss look up flow chart, stage 1 ...................................................................... ........................................... 31 figure 5: destination addre ss resolution flow chart, stage 2 ................................................................... .......................................... 32 figure 6: 802.1p prio rity field format........................................................................................ ....................................................... 40 figure 7: KS8993F eeprom configuration timing diagram ......................................................................... .................................. 42 figure 8: spi write data cycle ................................................................................................ ......................................................... 45 figure 9: spi read data cycle ................................................................................................. ........................................................ 45 figure 10: spi multiple write................................................................................................. ............................................................ 46 figure 11: spi multiple read.................................................................................................. ........................................................... 46 figure 12: eeprom interface input timing diagram .............................................................................. ......................................... 89 figure 13: eeprom interface output timing diagram............................................................................. ........................................ 89 figure 14: sni input timing diagram ........................................................................................... ..................................................... 90 figure 15: sni output timing diagram .......................................................................................... ................................................... 90 figure 16: mac mode mii timing - data received from mii ....................................................................... ....................................... 91 figure 17: mac mode mii timing - data transmitted to mii ...................................................................... ........................................ 91 figure 18: phy mode mii timing ? data receiv ed from mii ....................................................................... ....................................... 92 figure 19: phy mode mii timing - data transmitted to mii...................................................................... ......................................... 92 figure 20: spi input timing................................................................................................... ............................................................ 93 figure 21: spi output timing .................................................................................................. .......................................................... 94 figure 22: mdc/mdio timing for miim and smi interfaces ........................................................................ ...................................... 95 figure 23: auto negotiation timing............................................................................................ ....................................................... 96 figure 24: re set timing ....................................................................................................... ............................................................. 97 figure 25: recomm ended reset circuit .......................................................................................... ................................................. 98 figure 26: recommended reset circuit for in terfacing with cpu/fpga reset output............................................... ..................... 98 figure 27: 128-pin pqfp package outli ne drawing ............................................................................... ........................................ 100
micrel, inc. KS8993F/fl june 2009 9 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 1 signal description 1.1 KS8993F pin diagram p1led2 p1led1 p1led0 p2led2 p2led1 p2led0 dgnd vddio mchs p1crcd p2led3 ledsel1 hwpovr p2mdix p1spd p1pdx ml_en pwrdn agnd vdda 103 mccs pdd# advfc p2anen p2spd p2dpx p2ffc p1fst p1lpbm dgnd vddc nc p1led3 nc p2mdixdis p1anen p1ffc diagf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 vdda iset agnd mux1 mux2 fxsd1 rxp1 rxm1 agnd txp1 txm1 vddatx vddarx rxm2 rxp2 agnd txm2 txp2 vdda agnd agnd test1 test2 agnd vddap pv31 ps0 ps1 spis_n sda scl spiq mdc mdio scol smrxd1 smrxdv smtxc smtxd0 smtxd2 smtxen smac bpen rst_n x2 prsel0 prsel1 vddc dgnd sconf0 sconf1 scrs smrxd0 smrxd2 smrxd3 smrxc vddio dgnd smtxer smtxd1 smtxd3 ledsel0 x1 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 scanen pv23 testen p1_tagrm p2_tagrm p3_tagrm vddc dgnd p1_tagins p2_tagins p3_tagins p1_pp p2_pp p3_pp p1_txq2 p2_txq2 p3_txq2 p1_1pen p2_1pen p3_1pen pv13 pv12 vddio dgnd pv21 pv32 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 64 KS8993F agnd
micrel, inc. KS8993F/fl june 2009 10 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 1.2 pin description and i/o assignment pin # pin name type description 1 p1led2 i(pu)/o 2 p1led1 i(pu)/o 3 p1led0 i(pu)/o port 1 led indicators, defined as below: [ledsel1, ledsel0] [0,0] [0,1] p1led3 ------ ------ p1led2 link/act 100link/act p1led1 fulld/col 10link/act p1led0 speed full_dpx [ledsel1, ledsel0] [1,0] [1,1] p1led3 act ------ p1led2 link ------ p1led1 full_dpx/col ------ p1led0 speed ------ notes: ledsel0 is external strap-in pin #70. ledsel1 is external strap-in pin #23. p1led3 is pin #25. during reset, p1led[2:0] are inputs for internal testing. 4 p2led2 i(pu)/o 5 p2led1 i(pu)/o 6 p2led0 i(pu)/o port 2 led indicators, defined as below: [ledsel1, ledsel0] [0,0] [0,1] p2led3 ------ ------ p2led2 link/act 100link/act p2led1 fulld/col 10link/act p2led0 speed full_dpx [ledsel1, ledsel0] [1,0] [1,1] p2led3 act ------ p2led2 link ------ p2led1 full_dpx/col ------ p2led0 speed ------ notes: ledsel0 is external strap-in pin #70. ledsel1 is external strap-in pin #23. p2led3 is pin #20. during reset, p2led[2:0] are inputs for internal testing. 7 dgnd gnd digital ground 8 vddio pwr 3.3v digital vdd
micrel, inc. KS8993F/fl june 2009 11 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 9 mchs ipd 10 mccs ipd KS8993F operating modes, defined as below: (mchs, mccs) description (0, 0) normal 3 port switch mode (3 mac + 2 phy) mc mode is disabled. port 1 is either fiber or utp. port 2 is utp. port 3 (mii) is enabled. (0, 1) center mc mode (3 mac + 2 phy) mc mode is enabled. port 1 is fiber and has center mc enabled. port 2 is utp. port 3 (mii) is enabled. (1, 0) terminal mc mode (2 mac + 2 phy) mc mode is enabled. port 1 is fiber and has terminal mc enabled. port 2 is utp. port 3 (mii) is disabled. (1, 1) terminal mc mode (3 mac + 2 phy) mc mode is enabled. port 1 is fiber and has terminal mc enabled. port 2 is utp. port 3 (mii) is enabled. 11 pdd# ipu power down detect 1 = normal operation 0 = power down detected in terminal mc mode (pin mchs is ?1?), a high to low transition to this pin will cause port 1 (fiber) to generate and send out an ?indicate terminal mc condition? oam frame with the s0 status bit set to ?1?. 12 advfc ipu 1= advertise the switch?s flow control capability via auto negotiation. 0 = will not advertise the switch?s flow control capability via auto negotiation. 13 p2anen ipu 1 = enable auto negotiation on port 2. 0 = disable auto negotiation on port 2. 14 p2spd ipd 1 = force port 2 to 100bt if p2anen = 0. 0 = force port 2 to 10bt if p2anen = 0. 15 p2dpx ipd 1 = port 2 default to full duplex mode if p2anen = 1 and auto negotiation fails. force port 2 in full duplex mode if p2anen = 0. 0 = port 2 default to half duplex mode if p2anen = 1 and auto negotiation fails. force port 2 in half duplex mode if p2anen = 0. 16 p2ffc ipd 1 = always enable (force) port 2 flow control feature. 0 = port 2 flow control feature enable is determined by auto negotiation result. 17 p1fst opu 1 = normal function 0 = mc in loop back mode, or mc abnormal conditions happen 18 p1lcrcd ipd in mc loop back mode, 1 = drop oam frames and ethernet frames with the following errors ?
micrel, inc. KS8993F/fl june 2009 12 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description crc, undersize, oversize. loop back ethernet frames with only good crc and valid length. 0 = drop oam frames only. loop back all ethernet frames including those with errors. 19 p1lpbm ipd 0 = perform mc loop back at mac of port 2 1 = reserve. do not use. 20 p2led3 opd port 2 led indicator note: internal pull down is weak; it will not turn on the led. see description in pin# (4). 21 dgnd gnd digital ground 22 vddc / vout_1v8 pwr vddc : for KS8993F, this is an i nput power pin for the 1.8v digital core vdd. vout_1v8 : for KS8993Fl, this is an 1.8v output power pin to supply the KS8993Fl?s input power pins: vddap (pin 63), vddc (pin s 91, 123) and vdda (pins 38, 43, 57). 23 ledsel1 i pd led display mode select see description in pin# (1,4). 24 nc o pd reserved 25 p1led3 o pd port 1 led indicator note: an external 1k pull down is needed on this pin if it is connected to a led. see description in pin# (1). 26 nc o pd reserved 27 hwpovr ipd hardware pin overwrite 0 = disable. all strap-in pins c onfigurations are overwritten by the eeprom configuration data. 1 = enable. all strap-in pins c onfigurations are overwritten by the eeprom configuration data, except for p2anen (pin 13), p2spd (pin 14), p2dpx (pin 15) and ml_en (pin 34). 28 p2mdixdis ipd port 2 auto mdi/mdi-x 0 = enable (default) 1 = disable 29 p2mdix ipd port 2 mdi/mdi-x setting when auto mdi/mdi-x is disabled 0 = mdi-x (default), {transmit on txp2/txm2 pins} 1 = mdi, {transmit on rxp2/rxm2 pins} 30 p1anen ipu 1 = enable auto negotiation on port 1 0 = disable auto negotiation on port 1 31 p1spd ipd 1 = force port 1 to 100bt if p1anen = 0. 0 = force port 1 to 10bt if p1anen = 0. 32 p1dpx ipd 1 = port 1 default to full duplex mode if p1anen = 1 and auto negotiation fails. force port 1 in full duplex mode if p1anen = 0. 0 = port 1 default to half duplex mode if p1anen = 1 and auto negotiation fails. force port 1 in half duplex mode if p1anen = 0. 33 p1ffc ipd 1 = always enable (force) port 1 flow control feature 0 = port 1 flow control feature enable is determined by auto negotiation result. 34 ml_en ipd 1 = enable missing link
micrel, inc. KS8993F/fl june 2009 13 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 0 = disable missing link 35 diagf ipd 1 = diagnostic fail 0 = diagnostic normal 36 pwrdn i chip power down input (active low) 37 agnd gnd analog ground 38 vdda pwr 1.8v analog vdd 39 agnd gnd analog ground 40 mux1 i factory test pin ? float for normal operation 41 mux2 i factory test pin ? float for normal operation 42 agnd gnd analog ground 43 vdda pwr 1.8v analog vdd 44 fxsd1 i fiber signal detect / factory test pin 45 rxp1 i/o physical receive or transmit signal (+ differential) 46 rxm1 i/o physical receive or transmit signal (- differential) 47 agnd gnd analog ground 48 txp1 i/o physical transmit or receive signal (+ differential) 49 txm1 i/o physical transmit or receive signal (- differential) 50 vddatx pwr 3.3v analog vdd 51 vddarx pwr 3.3v analog vdd 52 rxm2 i/o physical receive or transmit signal (? differential) 53 rxp2 i/o physical receive or transmit signal (+ differential) 54 agnd gnd analog ground 55 txm2 i/o physical transmit or receive signal (? differential) 56 txp2 i/o physical transmit or receive signal (+ differential) 57 vdda pwr 1.8v analog vdd 58 agnd gnd analog ground 59 test1 i factory test pin ? float for normal operation 60 test2 i factory test pin ? float for normal operation 61 iset o set physical transmit output current. pull down this pin with a 3.01k 1% resistor to ground. 62 agnd gnd analog ground 63 vddap pwr 1.8v analog vdd for pll 64 agnd gnd analog ground 65 x1 i 66 x2 o 25 mhz crystal/oscillator clock connections pins (x1, x2) connect to a crystal. if an oscillator is used, x1 connects to a 3.3v tolerant oscillator and x2 is a no connect. note: clock is +/- 50ppm for both crystal and oscillator. 67 rst_n ipu hardware reset pin (active low) 68 bpen ipd half duplex backpressure 1 = enable 0 = disable 69 smac ipd special mac mode in this mode, the switch will do faster backoffs than normal. 1 = enable 0 = disable 70 ledsel0 ipd led display mode select see description in pin# (1,4). 71 smtxen ipd switch mii transmit enable 72 smtxd3 ipd switch mii transmit data bit 3
micrel, inc. KS8993F/fl june 2009 14 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 73 smtxd2 ipd switch mii transmit data bit 2 74 smtxd1 ipd switch mii transmit data bit 1 75 smtxd0 ipd switch mii transmit data bit 0 76 smtxer ipd switch mii transmit error 77 smtxc ipd/o switch mii transmit clock output in phy mii mode input in mac mii mode 78 dgnd gnd digital ground 79 vddio pwr 3.3v digital vdd 80 smrxc ipd/o switch mii receive clock output in phy mii mode input in mac mii mode 81 smrxdv o switch mii receive data valid 82 smrxd3 ipd/o switch mii receive data bit 3 strap option: switch mii full duplex flow control pd (default) = disable pu = enable 83 smrxd2 ipd / o switch mii receive bit 2 strap option: switch mii is in pd (default) = full duplex mode pu = half duplex mode 84 smrxd1 ipd/o switch mii receive bit 1 strap option: switch mii is in pd (default) = 100mbps mode pu = 10mbps mode 85 smrxd0 ipd/o switch mii receive bit 0 strap option: switch will accept packet size up to pd (default) = 1536 bytes (inclusive); pu = 1522 bytes (tagged), 1518 bytes (untagged) 86 scol ipd/o switch mii collision detect 87 scrs ipd/o switch mii carrier sense 88 sconf1 ipd 89 sconf0 ipd switch mii interface configuration (sconf1, sconf0) description (0,0) disable, output tri-stated (0,1) phy mode mii (1,0) mac mode mii (1,1) phy mode sni 90 dgnd gnd digital ground 91 vddc pwr 1.8v digital vdd 92 prsel1 ipd priorit y select select q ueue servicin g if usin g s p lit q ueues. use the table
micrel, inc. KS8993F/fl june 2009 15 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 93 prsel0 ipd below to select the desired servicing. note that this selection affects all split transmit queue ports in the same way. (prsel,prsel0) description (0,0) transmit all high priority before low priority (0,1) transmit high priority and low priority at 10:1 ratio. (1,0) transmit high priority and low priority at 5:1 ratio. (1,1) transmit high priority and low priority at 2:1 ratio. 94 mdc ipu mii management interface: clock input 95 mdio ipu/o mii management interface: data input/output note: an external 4.7k pull up is needed on this pin when it is in use. 96 spiq opu spi slave mode: serial data output see description in pin# (100, 101) 97 scl ipu/o spi slave mode / i2c slave mode: clock input i2c master mode: clock output see description in pin# (100, 101) 98 sda ipu/o spi slave mode: serial data input i2c master/slave mode: serial data input/output see description in pin# (100, 101) 99 spis_n ipu spi slave mode: chip select (active low) when spis_n is high, the KS8993F is deselected and spiq is held in high impedance state. a high-to-low transition is used to initiate spi data transfer. see description in pin# (100, 101) 100 ps1 ipd serial bus configuration pins to select mode of access to KS8993F internal
micrel, inc. KS8993F/fl june 2009 16 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 101 ps0 ipd registers. [ps1, ps0] = [0, 0] --- i2c master (eeprom) mode (if eeprom is not detected, the power up default values of the KS8993F internal registers will be used) interface signals type description spiq o not used. (tri-stated) scl o i2c clock sda i/o i2c data i/o spis_n ipu not used. [ps1, ps0] = [0, 1] --- i2c slave mode the external i2c master will drive the scl clock. the KS8993F device addresses are: 1011_1111 1011_1110 interface signals type description spiq o not used. (tri-stated) scl i i2c clock sda i/o i2c data i/o spis_n ipu not used. [ps1, ps0] = [1, 0] --- spi slave mode interface signals type description spiq o spi data out scl i spi clock sda i spi data in spis_n ipu spi chip select [ps1, ps0] = [1, 1] --- smi mode in this mode, the KS8993F provides access to all its internal 8 bit registers thru its mdc and mdio pins. note when (ps1, ps0) (1,1), the KS8993F provides access to its 16 bit miim registers thru its mdc and mdio pins. 102 pv31 ipu 103 pv32 ipu port 3 port based vlan mask bits . use to select which ports may transmit packets received on port 3. pv31 = 1, port 1 may transmit packets received on port 3. pv31 = 0, port 1 will not transmit any packets received on port 3. pv32 = 1, port 2 may transmit packets received on port 3. pv32 = 0, port 2 will not transmit any packets received on port 3. 104 pv21 ipu 105 pv23 ipu port 2 port based vlan mask bits . use to select which ports may transmit packets received on port 2. pv21 = 1, port 1 may transmit packets received on port 2. pv21 = 0, port 1 will not transmit any packets received on port 2. pv23 = 1, port 3 may transmit packets received on port 2. pv23 = 0, port 3 will not transmit any packets received on port 2. 106 dgnd gnd digital ground
micrel, inc. KS8993F/fl june 2009 17 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 107 vddio pwr 3.3v digital vdd 108 pv12 ipu 109 pv13 ipu port 1 port based vlan mask bits . use to select which ports may transmit packets received on port 1. pv12 = 1, port 2 may transmit packets received on port 1. pv12 = 0, port 2 will not transmit any packets received on port 1. pv13 = 1, port 3 may transmit packets received on port 1. pv13 = 0, port 3 will not transmit any packets received on port 1. 110 p3_1pen ipd enable 802.1p priority classification on port 3 ingress 1 = enable 0 = disable enable is from the receive perspective. if 802.1p processing is disabled or there is no tag, priority is determined by the p3_pp pin. 111 p2_1pen ipd enable 802.1p priority classification on port 2 ingress 1 = enable 0 = disable enable is from the receive perspective. if 802.1p processing is disabled or there is no tag, priority is determined by the p2_pp pin. 112 p1_1pen ipd enable 802.1p priority classification on port 1 ingress 1 = enable 0 = disable enable is from the receive perspective. if 802.1p processing is disabled or there is no tag, priority is determined by the p1_pp pin. 113 p3_txq2 ipd select transmit queue split on port 3 1 = split 0 = no split the split sets up high and low priority queues. packet priority classification is done on ingress ports, via port-based, 802.1p or tos based scheme. the priority enabled queuing on port 3 is set by p3_txq2. 114 p2_txq2 ipd select transmit queue split on port 2 1 = split 0 = no split the split sets up high and low priority queues. packet priority classification is done on ingress ports, via port-based, 802.1p or tos based scheme. the priority enabled queuing on port 2 is set by p2_txq2. 115 p1_txq2 ipd select transmit queue split on port 1 1 = split 0 = no split the split sets up high and low priority queues. packet priority classification is done on ingress ports, via port-based, 802.1p or tos based scheme. the priority enabled queuing on port 1 is set by p1_txq2. 116 p3_pp ipd select port-based priority on port 3 ingress
micrel, inc. KS8993F/fl june 2009 18 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 1 = high 0 = low 802.1p and diffserv, if applicable, will take precedence. 117 p2_pp ipd select port-based priority on port 2 ingress 1 = high 0 = low 802.1p and diffserv, if applicable, will take precedence. 118 p1_pp ipd select port-based priority on port 1 ingress 1 = high 0 = low 802.1p and diffserv, if applicable, will take precedence. 119 p3_tagins ipd enable tag insertion on port 3 egress 1 = enable 0 = disable all packets transmitted from port 3 will have 802.1q tag. packets received with tag will be sent out intact. packets received without tag will be tagged with ingress port?s default tag. 120 p2_tagins ipd enable tag insertion on port 2 egress 1 = enable 0 = disable all packets transmitted from port 2 will have 802.1q tag. packets received with tag will be sent out intact. packets received without tag will be tagged with ingress port?s default tag. 121 p1_tagins ipd enable tag insertion on port 1 egress 1 = enable 0 = disable all packets transmitted from port 1 will have 802.1q tag. packets received with tag will be sent out intact. packets received without tag will be tagged with ingress port?s default tag. 122 dgnd gnd digital ground 123 vddc pwr 1.8v digital vdd 124 p3_tagrm ipd enable tag removal on port 3 egress 1 = enable 0 = disable all packets transmitted from port 3 will not have 802.1q tag. packets received with tag will be modified by removing 802.1q tag. packets received without tag will be sent out intact. 125 p2_tagrm ipd enable tag removal on port 2 egress 1 = enable 0 = disable all packets transmitted from port 2 will not have 802.1q tag. packets received with tag will be modified by removing 802.1q tag. packets received without tag will be sent out intact. 126 p1_tagrm ipd enable tag removal on port 1 egress
micrel, inc. KS8993F/fl june 2009 19 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin # pin name type description 1 = enable 0 = disable all packets transmitted from port 1 will not have 802.1q tag. packets received with tag will be modified by removing 802.1q tag. packets received without tag will be sent out intact. 127 testen ipd scan test enable for normal operation, pull down this pin to ground 128 scanen ipd scan test scan mux enable for normal operation, pull down this pin to ground note: pwr = power supply; gnd = ground; i = input; o = output; i/o = bi-directional ipu = input w/ internal pull up; ipd = input w/ internal pull down; ipu/o = input w/ internal pull up during reset, output pin otherwise; ipd/o = input w/ internal pull down during reset, output pin otherwise; pd = strap pull down; pu = strap pull up; otri = output tri-stated; opu = output with internal pull-up; opd = output with internal pull-down
micrel, inc. KS8993F/fl june 2009 20 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2 functional description 2.1 overview the KS8993F is a single-chip fast ethernet media converter. it contains two 10/100 physical layer transceivers, three mac (media access control) units, layer-2 managed switch, and frame buffer. on the media side, the KS8993F supports ieee 802.3 10base-t, 100base-tx on ports 1 and 2, and 100base-fx on port 1. the KS8993F implements the unique oam sub-layer, which resides between rs and pcs layer in the ieee 802.3 standard. the KS8993F sends and receives an oam frame that has a fixed length of 96 bits. this special frame is used for the transmission of oam information between center mc and terminal mc. the KS8993F has the flexibility to reside in an unmanaged or managed design. an unmanaged design is achieved through i/o strapping or eeprom programming at system reset time. in a managed design, a host processor has complete control of the KS8993F via the smi, miim, spi or i 2 c interface. the KS8993F supports advanced quality of service, port mirroring, rate limiting, broadcast storm protection, and management via snmp. the KS8993Fl is the single supply version with all the identical rich features of the KS8993F. in the KS8993Fl version, pin number 22 provides 1.8v output pow er to the KS8993Fl?s vddc, vdda and v ddap power pins. refer to the pin description of pin number 22 in section 1.2, pin description and i/0 assignment, for more details. physical signal transmission and reception are enhanced through the use of patented analog circuitry that makes the design more efficient, and allows for lowest power consumption and smaller chip die size. 2.2 media converter function the KS8993F is the industry?s first single-chip fast ethernet media converter that conforms to the ts-1000 spec. the ts-1000 spec. has been standardized by the telecommunication technology committee (ttc) of japan in may 2002 and can be purchased from ttc. some key ts-1000 features include: ? private point-to-point communication between two ts-1000 compliant devices ? 96 bits (12 bytes) frames for the transmission of oam information between center mc and terminal mc ? transmission of mc status between center mc and terminal mc ? automatic generation of oam frame to inform mc link partner of local mc?s status change ? transmission of vendor code and model number information between center mc and terminal mc for device identification ? inquisition of terminal mc status by center mc ? remote loop back for diagnostic by center mc 2.2.1 oam (operations, administration, and management) frame format
micrel, inc. KS8993F/fl june 2009 21 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 bit command description f0-f7 preamble 1010 1010 c0 conservation delimiter 0 c1 direction delimiter 0: upstream (from terminal mc to center mc) 1: downstream (from center mc to terminal mc) c2-c3 configuration delimiter 10: request 11:reponse 01: indication 00:reserved c4-c7 version 0000 c8-c15 control signal 1000 0000: start loop back test 0000 0000: stop loop back test 0100 0000: notify status s0 power 0: normal operation 1: power down s1 optical 0: normal 1:abnormal s2 utp link 0: link up 1: link down s3 mc 0: normal 1:brake s4 way for information 0: use conservation frame 1: use fefi s5 loop mode 0: normal operation 1: in loop mode s6 terminal mc link option 0: center side mc have to set always ?0? 1: terminal side mc have to set always ?1? s7 terminal mc link speed1 this bit must be set ?0? s8 terminal mc link speed2 0: 10mbps 1: 100mbps these bits have to be set ?0?, if s2 is ?1? (center side mc have to set always ?0?) s9 terminal mc link duplex 0: half duplex 1: full duplex this bit have to be set ?0?, if s2 is ?1? (center side mc have to set always ?0?) s10 terminal mc auto- negotiation capability 0: not support auto-negotiation 1: support auto-negotiation (center side mc have to set always ?0?) s11 multiple link partner 0: one link partner on utp side 1: multiple link partner on utp side s12 ? s15 status reserve all bits must be set ?0? m0-m23 vendor code m24-m47 model number e0-e7 fcs create fcs at this sub-layer (c0-m47)
micrel, inc. KS8993F/fl june 2009 22 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.2.2 mc (media converter) mode mc (media converter) mode is selected and conf igured using hardware pins: mccs and mchs. terminal mc mode without port 3 support is enabled when mccs=0 and mchs=1. in this mode, port 1 is 100base- fx, port 2 is 10base-tx or 100base-tx and port 3 is disabled. terminal mc function is enabled, and the oam sub- layer responds to the center mc with oam frames, such as condition inform reply, loop mode start reply, and loop mode stop reply. terminal mc mode with port 3 support is enabled when mccs=1 and mchs=1. in this mode, port 1 is 100base-fx, port 2 is 10base-t or 100base-tx and port 3 supports mii or sni interface. terminal mc function is enabled, and the oam sub-layer responds to the center mc with oam frames, such as condition inform reply, loop mode start reply, and loop mode stop reply. center mc mode with port 3 support is enabled when mccs=1 and mchs=0. in this mode, port 1 is 100base-fx, port 2 is 10base-t or 100base-tx and port 3 supports mii or sni interface. center mc function is enabled, and the oam sub-layer generates and sends oam frames, such as condition inform request, loop mode start request and loop mode stop request to the terminal mc. 2.2.3 mc loop back function media converter center office cpu media converter management oam frame request command center terminal oam frame reply command gateway/ router
micrel, inc. KS8993F/fl june 2009 23 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 mc loop back operation is initiated and enabled by the center mc. the terminal mc provides the loop back path to return the loop back packet back to the center mc. in terminal mc mode, the KS8993F provides the following loop back path: ? receive loop back packet from center mc at rxp1/rxm1 input pins of port 1 (fiber). ? turn around loop back packet at mac of port 2 (copper). ? transmit loop back packet back to center mc from txp1/txm1 output pins of port 1 (fiber). oam mc pmd/pma pcs mac switch mac pcs pmd/pma fiber port utp port rx+ /rx- tx+ /tx- 2.2.4 registers for media converter functions the KS8993F provides 32 dedicated registers (0x40 to 0x5f ) for mc communication between center mc and terminal mc. some mc register functions include: ? phy address & configuration ? loop back counters for crc error, timeout, good packet ? remote commands ? counters for valid mc packet transmitted and received ? mc - status, vendor code, and model number ? link partner - status, vendor code, and model number 2.2.5 unique i/o feature definition
micrel, inc. KS8993F/fl june 2009 24 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 pin signal name type description #27 hwpovr input hardware pin strapping to override the eeprom value after reset when hwpovr = 0, the reset sequence for KS8993F are: ? reads hw pin strapping configuration after reset. ? reads eeprom configuration for all registers. when hwpovr = 1, the reset sequence for KS8993F are: ? reads hw pin strapping configuration after reset. ? reads eeprom configuration for all registers, except for port 2 (auto negotiation, speed, duplex) and missing link. when hwpovr = 1 during normal switch operation: 1. port 2 (auto negotiation, speed, duplex) can be updated via pins p2anen, p2spd and p2dpx, respectively. these three pins are polled by the KS8993F. 2.2.6 port 1 led indicator definition ledsel1 = 0 ledsel1 = 1 ledsel0=0 ledsel0=1 ledsel0=0 ledsel0=1 p1led3 tri-state, pull-down tri-state, pull-down activity --- p1led2 link/activity 100base-tx link/activity link --- p1led1 full duplex/ collision 10base-t link/activity full duplex/ collision --- p1led0 speed full duplex speed --- 2.2.7 port 2 led indicator definition ledsel1 = 0 ledsel1 = 1 ledsel0=0 ledsel0=1 ledsel0=0 ledsel0=1 p2led3 tri-state, pull-down tri-state, pull-down activity --- p2led2 link/activity 100base-tx link/activity link --- p2led1 full duplex/ collision 10base-t link/activity full duplex/ collision --- p2led0 speed full duplex speed ---
micrel, inc. KS8993F/fl june 2009 25 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.3 physical transceiver 2.3.1 100base-tx transmit the 100base-tx transmit function performs parallel to serial conversion, 4b/5b coding, scrambling, nrz to nrzi conversion, mlt3 encoding and transmission. the circuit starts with a parallel to serial conversion, which converts the mii data from the mac into a 125 mhz serial bit stream. the data and control stream is then converted into 4b/5b coding followed by a scrambler. the serialized data is further converted from nrz to nrzi format, and then transmitted in mlt3 current output. the output current is set by an external 1% 3.01 k resistor for the 1:1 transformer ratio. it has a typical rise/fall time of 4 ns and complies with the ansi tp-pmd standard regarding amplitude balance, overshoot and timing jitter. the wave-shaped 10base-t output is also incorporated into the 100base-tx transmitter. 2.3.2 100base-tx receive the 100base-tx receiver function performs adaptive equalizati on, dc restoration, mlt3 to nrzi conversion, data and clock recovery, nrzi to nrz conversion, de-scrambling, 4b/5b decoding and serial to parallel conversion. the receiving side starts with the equalization filter to compensate for inter-symbol interference (isi) over the twisted pair cable. since the amplitude loss and phase distortion is a functi on of the length of the cable, the equalizer has to adjust its characteristics to optimize the performance. in this design, the variable equalizer will make an initial estimation based on comparisons of incoming signal strength against some known cable characteristics, then it tunes itself for optimization. this is an ongoing process and can self adjust against environmental changes such as temperature variations. the equalized signal then goes through a dc restoration and data conversion block. the dc restoration circuit is used to compensate for the effect of base line wander and improve the dynamic range. the differential data conversion circuit converts the mlt3 format back to nrz i. the slicing threshold is also adaptive. the clock recovery circuit extracts the 125 mhz clock from the edges of the nrzi signal. this recovered clock is then used to convert the nrzi signal into the nrz format. the signal is then sent through the de-scrambler followed by the 4b/5b decoder. finally, the nrz serial data is converted to the mii format and provided as the input data to the mac. 2.3.3 pll clock synthesizer the KS8993F generates 125 m z, 31.25 mhz, 25 m z and 10 m z clocks for system timing. internal clocks are generated from an external 25 mhz crystal or oscillator. 2.3.4 scrambler/de-scrambler (100base-tx only) the purpose of the scrambler is to spread the power spectrum of the signal in order to reduce emi and baseline wander. transmitted data is scrambled through the use of an 11-bit wide linear feedback shift register (lfsr). the scrambler can generate a 2047-bit non-repetitive sequence. the receiver will then de-scramble the incoming data stream with the same sequence at the transmitter. 2.3.5 100base-fx operation and signal detection 100base-fx operation is very similar to 100base-tx operation with the differences being that the scrambler/de- scrambler and mlt3 encoder/decoder are bypassed on transmission and reception. in this mode, the auto negotiation feature is bypassed since there is no standard that supports fiber auto negotiation, and the auto mdi/mdi-x feature is also disabled.
micrel, inc. KS8993F/fl june 2009 26 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 for 100base-fx operation, the KS8993F fxsd1 (fiber signal detect) input pin is usually connected to the fiber transceiver sd (signal detect) output pin. 100base-fx mode is activated when fxsd1 is greater than 1v. when fxsd1 is between 1v and 1.8v, no fiber signal is detected and a far-end fault is generated if the feature is enabled. alternatively, fxsd1 can be tied high to force 100base-fx mode if the far-end fault feature is not used. when fxsd1 is greater than 2.2v, the fiber signal is detected. 100base-fx signal detection is summarized in the following table. table 1: fx and tx mode selection fxsd1 (pin 44) condition less than 0.2v tx mode greater than 1v, but less than 1.8v fx mode no signal detected; far-end fault generated (if enabled) greater than 2.2v fx mode signal detected to ensure proper operation, a resistive voltage divider is recommended to adjust the fiber transceiver sd output voltage swing to match the KS8993F fxsd1 input voltage threshold. refer to KS8993F schematic for recommended fiber transceiver connections. 2.3.6 100base-fx far-end fault (fef) far-end fault (fef) occurs when the signal detection is logically false on the receive side of the fiber transceiver. the KS8993F detects a fef when its fxsd1 input is between 1.0v and 1.8v. when a fef occurs, the transmission side signals the link partner by sending 84 ones followed by 1 zero in the idle period between frames. upon receiving a fef, the link will go down (even when the fiber signal is detected) to indicate a fault condition. the transmitting side is not affected when a fef is received, and will continue to send out its normal transmit pattern from the mac. by default, fef is enabled. fef can be disabled through register setting. 2.3.7 10base-t transmit and receive the output 10base-t driver is incorporated into the 100base-tx driver to allow transmission with the same magnetic. they are internally wave-shaped and pre-emphasized into outputs with a typical 2.3 v amplitude. the harmonic contents are at least 27 db below the fundamental when driven by an all-ones manchester-encoded signal. on the receive side, input buffer and level detecting squelch circ uits are employed. a differential input receiver circuit and a pll perform the decoding function. the manchester-encoded data stream is separated into clock signal and nrz data. a squelch circuit rejects signals with levels less than 400 mv or with short pulse widths in order to prevent noises at the rxp or rxm input from falsely triggering t he decoder. when the input exceeds the squelch limit, the pll locks onto the incoming signal and the KS8993F decodes a data frame. the receiver clock is maintained active during idle periods in between data reception.
micrel, inc. KS8993F/fl june 2009 27 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.3.8 power management the KS8993F features a per-port power down mode. to save power, a port that is not being used can be powered down through the port control registers, or miim control registers. in addition, there is a full chip power down mode. when activated, the entire chip will be shut down. 2.3.9 auto mdi/mdi-x crossover the KS8993F supports auto mdi/mdi-x crossover. this facilitates the use of either a straight connection cat-5 cable or a crossover cat-5 cable. the auto-sense function will detect remote transmit and receive pairs, and correctly assign the transmit and receive pairs from the KS8993F device. this feature can be extremely useful when the end users are unaware of cable type differences, and can also save on an additional uplink configuration connection. by default, auto mdi/mdi-x is enabled. it can be disabled through the port control registers. based on the ieee 802.3 standard, the mdi and mdi-x definitions are as follows: table 2: mdi/md i-x pin definition mdi mdi-x rj45 pins signals rj45 pins signals 1 td+ 1 rd+ 2 td- 2 rd- 3 rd+ 3 td+ 6 rd- 6 td- a ?straight cable? connects a mdi device to a mdi-x device, or a mdi-x device to a mdi device. the following diagram depicts a typical ?straight cable? connection between a nic card (mdi) and a switch, or hub (mdi-x).
micrel, inc. KS8993F/fl june 2009 28 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 1: typical straight cable connection r e c e iv e p a ir transm it pair r e c e iv e p a ir 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 transm it pair straight cable 10/100 ethernet m edia dependent interface 10/100 ethernet m edia dependent interface m odular connector (rj45) nic m odular connector (rj45) hub (repeater or switch) a ?crossover cable? connects a mdi device to another mdi dev ice, or a mdi-x device to another mdi-x device. the following diagram depicts a typical ?crossover cable? connection between two switches, or hubs (two mdi-x devices). figure 2: typical crossover cable connection receive pair receive pair transm it pair 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 transmit pair crossover cable 10/100 ethernet m edia dependent interface 10/100 ethernet m edia dependent interface m odular c onnector (r j45) hub (repeater or switch) m odular connector (rj45) hub (repeater or switch)
micrel, inc. KS8993F/fl june 2009 29 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.3.10 auto negotiation the KS8993F conforms to the auto negotiation protocol as described by the 802.3 committee. auto negotiation allows utp (unshielded twisted pair) link partners to select the best common mode of operation. in auto negotiation the link partners advertise capabilities across the link to each other. if auto negotiation is not supported or the link partner to the KS8993F is forced to bypass auto negotiation, then the mode is set by observing the signal at the receiver. this is known as parallel mode because while the transmitter is sending auto negotiation advertisements, the receiver is listening for advertisements or a fixed signal protocol. the link set up is depicted in the following flow diagram. figure 3: auto negotiation and parallel detection 2.4 mac and switch function 2.4.1 address look up the internal look up table stores mac addresses and their a ssociated information. it contains a 1k uni-cast address table plus switching information. the KS8993F is guaranteed to learn 1k addresses and distinguishes itself from hash- based look up tables, which depending on the operating environment and probabilities, may not guarantee the absolute number of addresses it can learn. start auto negotiation force link setting listen for 10baset link pulses listen for 100basetx idles attempt auto negotiation link mode set bypass auto negotiation and set link mode link mode set ? parallel operation join flow no yes yes no
micrel, inc. KS8993F/fl june 2009 30 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.4.2 learning the internal look up engine will update its table with a new entry if the following conditions are met: 1. the received packet's source address (sa) does not exist in the look up table. 2. the received packet is good, has no receiving errors, and is of legal length. the look up engine will insert the qualified source address in to the table, along with the port number and time stamp. if the table is full, the last entry of the table will be deleted to make room for the new entry. 2.4.3 migration the internal look up engine also monitors whether a station has moved. if so, it will update the table accordingly. migration happens when the following conditions are met: 1. the received packet's source address (sa) is in the table but the associated source port information is different. 2. the received packet is good, has no receiving errors, and is of legal length. the look up engine will update the existing record in the table with the new source port information. 2.4.4 aging the look up engine will update the time stamp information of a record whenever the corresponding source address appears. the time stamp is used in the aging process. if a record is not updated for a period of time, the look up engine will remove the record from the table. the look up engine constantly performs the aging process and will continuously remove aging records. the aging period is 200 seconds. this feature can be enabled or disabled through global register 3 (0x03). 2.4.5 forwarding the KS8993F will forward packets using an algorithm that is depicted in the following flowcharts. figure 4 shows stage one of the forwarding algorithm where the search engine looks up the vlan id, static table, and dynamic table for the destination address, and comes up with ?port to forward 1? (ptf1). ptf1 is then further modified by spanning tree, port mirroring and port vlan processes to come up with ?port to forward 2? (ptf2) as shown in figure 5 . ptf2 is where the packet will be sent.
micrel, inc. KS8993F/fl june 2009 31 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 4: destination addres s look up flowchart, stage 1 start vlan id valid? ptf1 = null search static table search complete. get ptf1 from static mac table dynamic table search search complete. get ptf1 from vlan table search complete. get ptf1 from dynamic mac table ptf1 -search vlan table -ingress vlan filtering -discard npvid check yes no found not found found not found this search is based on da or da+fid this search is based on da+fid
micrel, inc. KS8993F/fl june 2009 32 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 5: destination address resolution flowchart, stage 2 ptf1 port mirror process port vlan membership check ptf2 - rx mirror - tx mirror - rx or tx mirror - rx and tx mirror
micrel, inc. KS8993F/fl june 2009 33 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 the KS8993F will not forward the following packets: 1. error packets. these include framing errors, fcs errors, alignment errors, and illegal size packet errors. 2. 802.3x pause frames. the KS8993F will intercept these packets and perform the appropriate actions. 3. ?local" packets. based on destination address (da) look up, if the destination port from the look up table matches the port where the packet was from, the packet is defined as "local". 2.4.6 switching engine the KS8993F features a high-performance switching engine to move data to and from the mac using built-in frame buffers. it operates in store and forward mode, while the efficient switching mechanism reduces overall latency. the KS8993F has a 32kb internal frame buffer. this resource is shared between all three ports. the buffer sharing mode can be programmed through global register 2 (0x02). in one mode, ports are allowed to use any free buffers in the buffer pool. in the second mode, each port is only allowed to use 1/3 of the total buffer pool. there are a total of 250 buffers available. each buffer is 128 bytes in size. 2.4.7 mac operation the KS8993F strictly abides by ieee 802.3 standards to maximize compatibility. inter packet gap (ipg) if a frame is successfully transmitted, the 96-bit time ipg is measured between the two consecutive mtxen. if the current packet is experiencing collision, the 96-bit ti me ipg is measured from mcrs and the next mtxen. 2.4.8 back-off algorithm the KS8993F implements the ieee standard 802.3 binary exponential back-off algorithm, and optional "aggressive mode" back-off. after 16 collisions, the packet will be optionally dropped depending on the chip configuration in global register 3 (0x03). 2.4.9 late collision if a transmit packet experiences collisions after 512 bit times of the transmission, the packet will be dropped. 2.4.10 illegal frames the KS8993F discards frames less than 64 bytes long and can be programmed to accept frames up to 1536 bytes long in global register 4 (0x04). for special applications, the KS8993F can also be programmed to accept frames up to 1916 bytes long in the same global register. since the KS8993F supports vlan tags, the maximum sizing is adjusted when these tags are present. 2.4.11 flow control the KS8993F supports standard 802.3x flow control frames on both transmit and receive sides. on the receive side, if the KS8993F receives a pause control frame, the KS8993F will not transmit the next normal frame until the timer, specified in the pause control frame, expires. if another pause frame is received before the current timer expires, the timer will be updated with the new value from the second pause frame. during this period (being flow controlled), only flow control packets from the KS8993F will be transmitted.
micrel, inc. KS8993F/fl june 2009 34 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 on the transmit side, the KS8993F has intelligent and efficient means to determine when to invoke flow control. the flow control is based on the availability of system resour ces, including available buffe rs, available transmit queues and available receive queues. the KS8993F will flow control a port, which just received a packet, if the destination port resource is being used up. the KS8993F will issue a flow control frame (xoff), containing the maximum pause time defined in ieee standard 802.3x. once the resource is freed up, the KS8993F will send out the other flow control frame (xon) with zero pause time to turn off the flow control (turn on transmission to the port). a hysteresis feature is provided to prevent the flow control mechanism from being activated and deactivated too many times. the KS8993F will flow control all ports if the receive queue becomes full. 2.4.12 half duplex back pressure a half-duplex back-pressure option (note: not in ieee 802.3 standards) is also provided. the activation and deactivation conditions are the same as the above in full duplex mode. if back-pressure is required, the KS8993F will send preambles to defer the other stations' transmission (carrier sense deference). to avoid jabber and excessive deference defined in 802.3 standard, after a certain time it will discontinue the carrier sense but it will raise the carrier sense quickly. this short silent time (no carrier sense) is to prevent other stations from sending out packets and keeps other stations in carrier sense deferred state. if the port has packets to send during a back-pressure situation, the carrier sense type back-pressure will be interrupted and those packets will be transmitted instead. if there are no more packets to send, carrier sense type back-pressure will be active again until switch resources free up. if a collision occurs, the binary exponential back-off algorithm is skipped and carrier sense is generated immediately, reducing the chance of further colliding and maintaining carrier sense to prevent reception of packets. to ensure no packet loss in 10 base-t or 100 base-tx half duplex modes, the following should be enabled: 1. aggressive back off (set global register 3 (0x03), bit 0 to ?1?, or pull high smac (pin 69)) 2. no excessive collision drop (set global register 4 (0x04), bit 3 to ?1?, or pull high smac (pin 69)) these bits are not set as defaults because the settings are not part of the ieee standard. 2.4.13 broadcast storm protection the KS8993F has an intelligent option to protect the switch system from receiving too many broadcast packets. broadcast packets will be forwarded to all ports except the source port, and thus use too many switch resources (bandwidth and available space in transmit queues). the ks 8993f has the option to include ?multicast packets? for storm control. the broadcast storm rate parameters are programmed globally, and can be enabled or disabled on a per port basis. the rate is based on a 67ms interval for 100bt and a 500 ms interval for 10bt. at the beginning of each interval, the counter is cleared to zero, and the rate limit mechanism starts to count the number of bytes during the interval. the rate definition is described in global regi sters 6 (0x06) and 7 (0x07). the default setting for registers 6 and 7 is 0x63, which is 99 decimal. this is equal to a rate of 1 %, calculated as follows: 148,800 frames/sec * 67 ms/interval * 1% = 99 frames/interval (approx.) = 0x63h this means the KS8993F accepts only 1% of broadcast data and filters out 99%. 2.5 mii interface operation
micrel, inc. KS8993F/fl june 2009 35 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 the mii (media independent interface) is specified by the ieee 802.3 committee and provides a common interface between physical layer and mac layer devices. the mii interface provided by the KS8993F is connected to the device?s third mac. the interface contains two distinct groups of signals: one for transmission and the other for reception. the following table describes the signals used in the mii interface. table 3: mii signals KS8993F phy mode connections KS8993F mac mode connections external mac signals KS8993F phy signals pin description external phy signals KS8993F mac signals mtxen smtxen transmit enable mtxen smrxdv mtxer smtxer transmit error mtxer (not used) mtxd3 smtxd[3] transmit data bit 3 mtxd3 smrxd[3] mtxd2 smtxd[2] transmit data bit 2 mtxd2 smrxd[2] mtxd1 smtxd[1] transmit data bit 1 mtxd1 smrxd[1] mtxd0 smtxd[0] transmit data bit 0 mtxd0 smrxd[0] mtxc smtxc transmit clock mtxc smrxc mcol scol collision detection mcol scol mcrs scrs carrier sense mcrs scrs mrxdv smrxdv receive data valid mrxdv smtxen mrxer (not used) receive error mrxer smtxer mrxd3 smrxd[3] receive data bit 3 mrxd3 smtxd[3] mrxd2 smrxd[2] receive data bit 2 mrxd2 smtxd[2] mrxd1 smrxd[1] receive data bit 1 mrxd1 smtxd[1] mrxd0 smrxd[0] receive data bit 0 mrxd0 smtxd[0] mrxc smrxc receive clock mrxc smtxc the mii interface operates in either phy mode or mac mode. the interface is a nibble wide data interface, and therefore runs at ? the network bit rate (not encoded). additional signals on the transmit side indicate when data is valid or when an error occurs during transmission. likewise, the receive side has indicators that convey when the data is valid and without physical layer errors. for half duplex operation, there is a signal that indicates a collision has occurred during transmission. note that the signal mrxer is not provided on the interface for phy mode operation and the signal mtxer is not provided on the interface for mac mode operation. normally , mrxer would indicate a receive error coming from the physical layer device. mtxer would indicate a transmit e rror from the mac device. these signals are not appropriate for this configuration. for phy mode operation, if the device interfacing with the KS8993F has an mrxer pin, it should be tied low. for mac mode operation, if the device interfacing with the KS8993F has an mtxer pin, it should be tied low. 2.6 sni (7-wire) interface operation the sni (serial network interface) or 7-wire is compatible with some controllers used for network layer protocol processing. in sni mode, the KS8993F acts like a phy and the external controller functions as the mac. the KS8993F can interface directly with external controllers using the 7-wire interface. these signals are divided into two groups, one for transmission and the other for reception. the signals involved are described in the following table. table 4: sni (7-wire) signals pin description sni signals KS8993F signals
micrel, inc. KS8993F/fl june 2009 36 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 transmit enable txen smtxen serial transmit data txd smtxd[0] transmit clock txc smtxc collision detection col scol carrier sense crs smrxdv serial receive data rxd smrxd[0] receive clock rxc smrxc the sni interface is a bit wide data interface and therefore runs at the network bit rate (not encoded). an additional signal on the transmit side indicates when data is valid. sim ilarly, the receive side has an indicator that conveys when the data is valid. for half duplex operation, the KS8993F scol signal is us ed to indicate that a collision has occurred during transmission. 2.7 mii management interface (miim) the KS8993F supports the ieee 802.3 mii management interface, also known as the management data input / output (mdio) interface. this interface allows upper-layer devices to monitor and control the states of the KS8993F. an external device with mdc/mdio capability can be used to read the phy status or configure the phy settings. further details on the miim interface can be found in section 22.2.4.5 of the ieee 802.3 specification. the miim interface consists of the following: ? a physical connection that incorporates the data line (mdio) and the clock line (mdc). ? a specific protocol that operates across the aforementioned physical connection that allows an external controller to communicate with the KS8993F device. ? access to a set of six 16-bits registers, consisting of standard miim registers [0:5]. the following table depicts the mii management interface frame format. table 5: mii management interface frame format preamble start of frame read/write op code phy address bits [4:0] reg address bits [4:0] ta data bits [15:0] idle read 32 1?s 01 10 xx0aa rrrrr z0 dddddddd_dddddddd z write 32 1?s 01 01 xx0aa rrrrr 10 dddddddd_dddddddd z for the KS8993F, miim register access is selected when bit 2 of the phy address is set to ?0?. phy address bits [4:3] are not defined for miim register access, and hence can be set to either 0?s or 1?s in read/write operation. 2.8 serial management interface (smi)
micrel, inc. KS8993F/fl june 2009 37 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 the serial management interface is the KS8993F non-standard miim interface that provides access to all KS8993F configuration registers. this interface allows an external device to completely monitor and control the states of the KS8993F. the smi interface consists of the following: ? a physical connection that incorporates the data line (mdio) and the clock line (mdc). ? a specific protocol that operates across the aforementioned physical connection that allows an external controller to communicate with the KS8993F device. ? access to all KS8993F configuration registers. r egisters access includes the global, port and advanced control registers 0-127 (0x00 ? 0x7f), and indirect access to the standard miim registers [0:5]. the following table depicts the serial management interface frame format. table 6: serial management interface (smi) frame format preamble start of frame read/write op code phy address bits [4:0] reg address bits [4:0] ta data bits [15:0] idle read 32 1?s 01 10 rr1xx rrrrr z0 0000_0000_dddd_ dddd z write 32 1?s 01 01 rr1xx rrrrr 10 xxxx_xxxx_ dddd_dddd z for the KS8993F, smi register access is selected when bit 2 of the phy address is set to ?1?. phy address bits [1:0] are not defined for smi register access, and hence can be set to either 0?s or 1?s in read/write operation. to access the KS8993F registers 0-127 (0x00 ? 0x7f), the following applies: ? phyad[4:3] and regad[4:0] are concatenated to form the 7-bits address. i.e., {phyad[4:3], regad[4:0]} = bits [6:0] of the 7-bits address. ? registers are 8 data bits wide. for read operation, data bits [15:8] are read back as 0?s. for write operation, data bits [15:8] are not defined, and hence can be set to either 0?s or 1?s. smi register access is the same as the miim register access, except for the register access requirements presented in this section. 2.9 advanced switch function 2.9.1 port mirroring support
micrel, inc. KS8993F/fl june 2009 38 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 KS8993F supports ?port mirroring? comprehensively as: 1) ?receive only? mirror on a port all the packets received on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be ?receive sniff? and port 3 is programmed to be the ?sniffer port?. a packet, received on port 1, is destined to port 2 after the internal look up. the KS8993F will forward the packet to both port 2 and port 3. the KS8993F can optionally forward even ?bad? received packets to the ?sniffer port?. 2) ?transmit only? mirror on a port all the packets transmitted on the port will be mirrored on the sniffer port. for example, port 1 is programmed to be ?transmit sniff? and port 3 is programmed to be the ?sniffer port?. a packet received on port 2 is destined to port 1 after the internal look up. the KS8993F will forward the packet to both port 1 and port 3. 3) ?receive and transmit? mirror on two ports all the packets received on port a and transmitted on port b will be mirrored on the sniffer port. to turn on the ?and? feature, set register 5 bit 0 to ?1?. for example, port 1 is programmed to be ?receive sniff?, port 2 is programmed to be ?transmit sniff? and port 3 is programmed to be the ?sniffer port?. a packet received on port 1 is destined to port 2 after the internal look up. the KS8993F will forward the packet to both port 2 and 3. multiple ports can be selected to be ?receive sniff? or ?transmit sniff?. and any port can be selected to be the ?sniffer port?. all these per port features can be selected through registers 17, 33 and 49 for ports 1, 2 and 3, respectively. 2.9.2 ieee 802.1q vlan support the KS8993F supports 16 active vlans out of the 4096 possibl e vlans specified in the ieee 802.1q specification. KS8993F provides a 16-entries vlan table, which converts the 12-bits vlan id (vid) to the 4-bits filter id (fid) for address look up. if a non-tagged or null-vid-tagged packet is received, the ingress port default vid is used for look up. in vlan mode, the look up process starts with vlan table look up to determine whether the vid is valid. if the vid is not valid, the packet will be dropped and its address will not be learned. if the vid is valid, the fid is retrieved for further look up. the fid + destination address (fid+da) are used to determine the destination port. the fid + source address (fid+sa) are used for address learning.
micrel, inc. KS8993F/fl june 2009 39 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 table 7: fid+da look up in vlan mode da found in static mac table? use fid flag? fid match? da+fid found in dynamic mac table? action no don?t care don?t care no broadcast to the membership ports defined in the vlan table bits [18:16] no don?t care don?t care yes send to the destination port defined in the dynamic mac address table bits [53:52] yes 0 don?t care don?t care send to the destination port(s) defined in the static mac address table bits [50:48] yes 1 no no broadcast to the membership ports defined in the vlan table bits [18:16] yes 1 no yes send to the destination port defined in the dynamic mac address table bits [53:52] yes 1 yes don?t care send to the destination port(s) defined in the static mac address table bits [50:48] table 8: fid+sa look up in vlan mode fid+sa found in dynamic mac table? action no learn and add fid+sa to the dynamic mac address table yes update time stamp advanced vlan features, such as ?ingress vlan filtering? and ?discard non pvid packets? are also supported by the KS8993F. these features can be set on a per port basis, and are defined in register 18, bit 6 and 5, respectively for port 1. 2.9.3 qos priority this feature provides quality of service (qos) for applications, such as voip and video conferencing. the KS8993F per port transmit queue could be split into two priority queues: a high priority queue and a low priority queue. bit 0 of registers 16, 32 and 48 is used to enable split transmit queues for ports 1, 2 and 3, respectively. optionally, the px_txq2 strap-in pins can be used to enable this feature. with split transmit queues, high priority packets will be placed in the high priority queue and low priority packets will be placed in the low priority queue.
micrel, inc. KS8993F/fl june 2009 40 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 for split transmit queues, the KS8993F provides four priority schemes: 1. ?transmit all high priority packets before low priority packets?, i.e. a low priority packet could be transmitted only when the high priority queue is empty; 2. ?transmit high priority packets and low priority packets at 10:1 ratio?, i.e. transmit a low priority packet after every 10 high priority packets are transmitted, if both queues are busy; 3. ?transmit high priority packets and low priority packets at 5:1 ratio?; 4. ?transmit high priority packets and low priority packets at 2:1 ratio?. if a port's transmit queue is not split, both high priority packets and low priority packets have equal priority in the transmit queue. register 5 bits [3:2] are used to select the desired priority scheme. optionally, the prsel1 and prsel0 strap-in pins can be used. port based priority with port based priority, each ingress port can be individually classified as a high priority receiving port. all packets received at the high priority receiving port are marked as high priority, and will be sent to the high priority transmit queue if the corresponding transmit queue is split. bit 4 of registers 16, 32 and 48 is used to enable port based priority for ports 1, 2 and 3, respectively. optionally, the px_pp strap-in pins can be used to enable this feature. 802.1p based priority for 802.1p based priority, the KS8993F will examine the ingress (incoming) packets to determine whether they are tagged. if tagged, the 3-bits priority field in the vlan tag is retrieved and compared against the ?priority base? value, specified by register 2 bits [6:4]. the ?priority bas e? value is programmable; its default value is 0x4. the following figure illustrates how the 802.1p priority field is embedded in the 802.1q vlan tag. figure 6: 802.1p priority field format preamble da tci 866 2 length llc data fcs 2 46-1500 4 1 tagged packet type (8100 for ethernet) 802.1p cfi vlan id bytes bits 16 3 12 802.1q vlan tag 2 sa vpid if an ingress packet has an equal or higher priority value than the "priority base" value, the packet will be placed in the high priority transmit queue if the corresponding transmit queue is split. 802.1p based priority is enabled by bit 5 of registers 16, 32 and 48 for ports 1, 2 and 3, respectively. optionally, the px_1pen strap-in pins can be used to enable this feature. the KS8993F provides the option to insert or remove the priority tagged frame's header at each individual egress port. this header, consisting of the 2 bytes vlan protocol id (vpi d) and the 2 bytes tag control information field (tci), is also refer to as the 802.1q vlan tag.
micrel, inc. KS8993F/fl june 2009 41 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 tag insertion is enabled by bit 2 of registers 16, 32 and 48 for ports 1, 2 and 3, respectively. optionally, the px_tagins strap-in pins can be used to enable this feature. at the egress port, untagged packets are tagged with the ingress port?s default tag. the default tags are programmed in register sets {19,20}, {35,36} and {51,52} for ports 1, 2 and 3, respectively. the KS8993F will not add tags to already tagged packets. tag removal is enabled by bit 1 of registers 16, 32 and 48 for ports 1, 2 and 3, respectively. optionally, the px_tagrm strap-in pins can be used to enable this feature. at the egress port, tagged packets will have their 802.1q vlan tags removed. the KS8993F will not modify untagged packets. the crc is recalculated for both tag insertion and tag removal. 802.1p priority field re-mapping is a qos feature that allows the KS8993F to set the ?user priority ceiling? at any ingress port. if the ingress packet?s priority field has a higher priority value than the default tag?s priority field of the ingress port, the packet?s priority field is replaced with the def ault tag?s priority field. the ?user priority ceiling? is enabled by bit 3 of registers 16, 32 and 48 for ports 1, 2 and 3, respectively. diffserv based priority diffserv based priority uses registers 96 to 103. more details are provided at the beginning of the advanced control registers section. 2.9.4 rate limit support the KS8993F supports hardware rate limiting independently on the ?receive side? and on the ?transmit side? on a per port basis. rate limiting is supported in both priority and non-priority environment. the rate limit starts from 0 kbps and goes up to the line rate in steps of 32 kbps. the KS8993F uses ?one second? as the rate limiting interval. at the beginning of each interval, the counter is cleared to zero, and the rate limit mechanism starts to count the number of bytes during the interval. on the ?receive side?, if the number of bytes exceeds the programmed limit, the switch will stop receiving packets on the port until the ?one second? interval expires. flow control can be enabled to prevent packet loss. if the rate limit is programmed greater than or equal to 128 kbps and the byte counter is 8 kbytes below the limit, flow control will be triggered. if the rate limit is programmed lower than 128 kbps and the byte counter is 2 kbytes below the limit, flow control will also be triggered. on the ?transmit side?, if the number of bytes exceeds the programmed limit, the switch will stop transmitting packets on the port until the ?one second? interval expires. if priority is enabled, the KS8993F can be programmed to support different rate limits for high priority packets and low priority packets. 2.10 configuration interface the KS8993F can operate as both a managed switch and an unmanaged switch. in unmanaged mode, the KS8993F is typically programmed using an eeprom. if no eeprom is present, the KS8993F is configured using its default register settings. so me default register settings can be overridden via strap-in pin options. the strap-in pins are indicated in the ?ks 8993f pin description and i/o assignment? table in section 1.2.
micrel, inc. KS8993F/fl june 2009 42 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.10.1 i 2 c master serial bus configuration with an additional i 2 c (?2-wire?) eeprom, the KS8993F can perform more advanced switch features like ?broadcast storm protection? and ?rate control? without the need of an external processor. for KS8993F i 2 c master configuration, the eeprom stores the configuration data for register 0 to register 109 (as defined in the KS8993F register map) with the exception of the ?read only? status registers. after the de-assertion of reset, the KS8993F will sequentially read in the configuration data for all 110 registers, starting from register 0. the configuration access time (t prgm ) is less than 15 ms, as depicted in the following figure. figure 7: KS8993F eeprom co nfiguration timing diagram .... .... .... rst_n scl sda t prgm <15 ms the following is a sample procedure for programming the KS8993F with a pre-configured eeprom: 1. connect the KS8993F to the eeprom by joining the sc l and sda signals of the respective devices. for the KS8993F, scl is pin 97 and sda is pin 98. 2. enable i 2 c master mode by setting the KS8993F strap-in pins, ps[1:0] (pins 100 and 101, respectively) to ?00?. 3. check to ensure that the KS8993F reset signal input, rst_n (pin 67), is properly connected to the external reset source at the board level. 4. program the desired configuration data into the eeprom. 5. place the eeprom on the board and power up the board. 6. assert an active-low reset to the rst_n pin of the KS8993F. after reset is de-asserted, the KS8993F will begin reading the configuration data from the eeprom. the KS8993F will check that the first byte read from the eeprom is ?93?. if this value is correct, eeprom configuration will continue. if not, eeprom configuration access is denied and all other data sent from the eeprom will be ignored by the KS8993F. the configuration access time (t prgm ) is less than 15 ms. note: for proper operation, check to ens ure that the KS8993F pwrdn input signal (pin 36) is not asserted during the reset operation. the pwrdn input is active low.
micrel, inc. KS8993F/fl june 2009 43 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 2.10.2 i 2 c slave serial bus configuration in managed mode, the KS8993F can be configured as an i 2 c slave device. in this mode, an i 2 c master device (external controller/cpu) has complete programming access to the KS8993F?s 128 registers. programming access includes the global registers, port registers, media conv erter registers, advanced control registers and indirect access to the ?static mac table?, ?vlan table?, ?dynamic mac table? and ?mib counters?. the tables and counters are indirectly accessed via registers 110 thru 120. in i 2 c slave mode, the KS8993F operates like other i 2 c slave devices. addressing the KS8993F?s 8 bit registers is similar to addressing atmel?s at24c02 eeprom?s memory locations. details of i 2 c read/write operations and related timing information can be found in the at24c02 datasheet. two fixed 8 bit device addresses are used to address the KS8993F in i 2 c slave mode. one is for read; the other is for write. the addresses are as follow: 1011_1111 1011_1110 the following is a sample procedure for programming the KS8993F using the i 2 c slave serial bus: 1. enable i 2 c slave mode by setting the KS8993F strap-in pins ps[1:0] (pins 100 and 101 respectively) to ?01?. 2. power up the board and assert reset to the KS8993F. after reset, the ?start switch? bit (register 1 bit 0) will be set to ?0?. 3. configure the desired register settings in the KS8993F, using the i 2 c write operation. 4. read back and verify the register settings in the KS8993F, using the i 2 c read operation. 5. write a ?1? to the ?start switch? bit to start the KS8993F with the programmed settings. note: the ?start switch? bit cannot be set to ?0? to stop the switch after an ?1? is written to this bit. thus, it is recommended that all switch configuration settings are programmed before the ?start switch? bit is set to ?1?. some of the configuration settings, such as ?agi ng enable?, ?auto negotiation enable?, ?force speed? and ?power down? can be programmed after the switch has been started. 2.10.3 spi slave serial bus configuration in managed mode, the KS8993F can be configured as a spi slave device. in this mode, a spi master device (external controller/cpu) has complete programming access to the KS8993F?s 128 registers. programming access includes the global registers, port registers, media converter regist ers, advanced control registers and indirect access to the ?static mac table?, ?vlan table?, ?dy namic mac table? and ?mib counters?. the tables and counters are indirectly accessed via registers 110 thru 120. the KS8993F supports two standard spi commands: ?0000_0011? for data read and ?0000_0010? for data write. spi multiple read and multiple write are also supported by the KS8993F to expedite register read back and register configuration, respectively. spi multiple read is initiated when the master device c ontinues to drive the KS8993F spis_n input pin (spi slave select signal) low after a byte (a register) is read. the KS8993F internal address counter will increment automatically to the next byte (next register) after the read. the next byte at the next register address will be shifted out onto the KS8993F spiq output pin. spi multiple read will continue until the spi master device terminates it by de-asserting the spis_n signal to the KS8993F.
micrel, inc. KS8993F/fl june 2009 44 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 similarly, spi multiple write is initiated when the master device continues to drive the KS8993F spis_n input pin low after a byte (a register) is written. the KS8993F internal address counter will increment automatically to the next byte (next register) after the write. the next byte that is sent from the master device to the KS8993F sda input pin will be written to the next register address. spi multiple write will continue until the spi master device terminates it by de- asserting the spis_n signal to the KS8993F. for both spi multiple read and multiple write, the KS8993F internal address counter will wrap back to register address zero once the highest register address is reached. this feature allows all 128 KS8993F registers to be read, or written with a single spi command and any initial register address. the KS8993F is capable of supporting a 5 mhz spi bus. the following is a sample procedure for programming the KS8993F using the spi bus: 1. at the board level, connect the KS8993F pins as follows: table 9: KS8993F spi connections KS8993F pin # KS8993F signal name external processor signal description 99 spis_n spi slave select 97 scl (spic) spi clock 98 sda (spid) spi data (master output; slave input) 96 spiq spi data (master input; slave output) 2. enable spi slave mode by setting the KS8993F strap-in pins ps[1:0] (pins 100 and 101 respectively) to ?10?. 3. power up the board and assert reset to the KS8993F. after reset, the ?start switch? bit (register 1 bit 0) will be set to ?0?. 4. configure the desired register settings in the KS8993F, using the spi write or multiple write command. 5. read back and verify the register settings in the KS8993F, using the spi read or multiple read command. 6. write a ?1? to the ?start switch? bit to start the KS8993F with the programmed settings. note: the ?start switch? bit cannot be set to ?0? to stop the switch after an ?1? is written to this bit. thus, it is recommended that all switch configuration settings are programmed before the ?start switch? bit is set to ?1?. some of the configuration settings, such as ?agi ng enable?, ?auto negotiation enable?, ?force speed? and ?power down? can be programmed after the switch has been started.
micrel, inc. KS8993F/fl june 2009 45 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 the following four figures illustrate the spi data cycles for ?write?, ?read?, ?multiple write? and ?multiple read?. the read data is registered out of spiq on the falling edge of spic, and the data input on spid is registered on the rising edge of spic. figure 8: spi write data cycle spiq spic spid spis_n 00000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address write data d2 d0 d1 d3 d4 d5 d6 d7 figure 9: spi read data cycle spiq spic spid spis_n 00000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address read data
micrel, inc. KS8993F/fl june 2009 46 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 10: spi multiple write spiq spic spid spis_n 00000010 x a7 a6 a5 a4 a3 a2 a1 a0 write command write address byte 1 d2 d0 d1 d3 d4 d5 d6 d7 spiq spic spid spis_n d7 d6 d5 d4 d4 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 byte 2 byte 3 ... byte n d2 d0 d1 d3 d4 d5 d6 d7 figure 11: spi multiple read spiq spic spid spis_n 00000011 x a7 a6 a5 a4 a3 a2 a1 a0 d7 d6 d5 d4 d3 d2 d1 d0 read command read address byte 1 xxxxxxxx xxxxxxx x byte 2 byte 3 byte n x x x x x x x x xxxxxxxx d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 spiq spic spid spis_n
micrel, inc. KS8993F/fl june 2009 47 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 3 mii management (miim) registers the miim interface is used to access the mii phy registers defined in this section. the spi, i2c and smi interfaces can also be used to access these registers. the latter three interfaces use a different mapping mechanism than the miim interface. as defined in the ieee 802.3 specification, the ?phyad? are assigned as ?0x1? for phy port 1 and ?0x2? for phy port 2. the ?regad? supported are 0,1,2,3,4 and 5. when the switch is in ?center side media converter mode?. only phy port 1 is accessible after the phyad is programmed via the spi, i2c or smi interface. register number description 0x0 basic control register 0x1 basic status register 0x2 physical identifier i 0x3 physical identifier ii 0x4 auto-negotiation advertisement register 0x5 auto-negotiation link partner ability register 0x6 ? 0x1f not supported register 0: mii basic control bit name r/w description default reference 15 soft reset ro not supported 0 14 loop back r/w not supported 0 13 force 100 r/w =1, 100 mbps =0, 10 mbps 0 reg. 28, bit 6 reg. 44, bit 6 12 an enable r/w =1, auto-negotiation enabled =0, auto-negotiation disabled 1 11 power down r/w =1, power down =0, normal operation 0 reg. 29, bit 3 reg. 45, bit 3 10 isolate ro not supported 0 9 restart an r/w =1, restart auto-negotiation =0, normal operation 0 reg. 29, bit 5 reg. 45, bit 5 8 force full duplex r/w =1, full duplex =0, half duplex 0 reg. 28, bit 5 reg. 44, bit 5 7 collision test ro not supported 0 6 reserved ro 0 5 reserved ro 0 4 force mdi r/w =1, force mdi (transmit on rxp/rxm pins) =0, normal operation (transmit on txp/txm pins) 0 reg. 29, bit 1 reg. 45, bit 1 3 disable mdi-x r/w =1, disable auto mdi/mdi-x =0, normal operation 0 reg. 29, bit 2 reg. 45, bit 2 2 disable far- end fault r/w =1, disable far-end fault detection =0, normal operation 0 reg. 29, bit 4 1 disable transmit r/w =1, disable transmit =0, normal operation 0 reg. 29, bit 6 reg. 45, bit 6 0 disable led r/w =1, disable led =0, normal operation 0 reg. 29, bit 7 reg. 45, bit 7
micrel, inc. KS8993F/fl june 2009 48 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 1: mii basic status bit name r/w description default reference 15 t4 capable ro =0, not 100 base-t4 capable 0 14 100 full capable ro =1, 100base-tx full duplex capable =0, not capable of 100base-tx full duplex 1 always 1 13 100 half capable ro =1, 100base-tx half duplex capable =0, not 100base-tx half duplex capable 1 always 1 12 10 full capable ro =1, 10base-t full duplex capable =0, not 10base-t full duplex capable 1 always 1 11 10 half capable ro =1, 10base-t half duplex capable =0, not 10base-t half duplex capable 1 always 1 10-7 reserved ro 0 6 preamble suppressed ro not supported 0 5 an complete ro =1, auto-negotiation complete =0, auto-negotiation not completed 0 reg. 30, bit 6 reg. 46, bit 6 4 far-end fault ro =1, far-end fault detected =0, no far-end fault detected 0 reg. 31, bit 0 3 an capable ro =1, auto-negotiation capable =0, not auto-negotiation capable 1 reg. 28, bit 7 reg. 44, bit 7 2 link status ro =1, link is up =0, link is down 0 reg. 30, bit 5 reg. 46, bit 5 1 jabber test ro not supported 0 0 extended capable ro =0, not extended register capable 0 register 2: phyid high bit name r/w description default 15-0 phyid high ro high order phyid bits 0x0022 register 3: phyid low bit name r/w description default 15-0 phyid low ro low order phyid bits 0x1430
micrel, inc. KS8993F/fl june 2009 49 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 4: auto-negotiation advertisement ability bit name r/w description default reference 15 next page ro not supported 0 14 reserved ro 0 13 remote fault ro not supported 0 12-11 reserved ro 0 10 pause r/w =1, advertise pause ability =0, do not advertise pause ability 1 reg. 28, bit 4 reg. 44, bit 4 9 reserved r/w 0 8 adv 100 full r/w =1, advertise 100 full duplex ability =0, do not advertise 100 full duplex ability 1 reg. 28, bit 3 reg. 44, bit 3 7 adv 100 half r/w =1, advertise 100 half duplex ability =0, do not advertise 100 half duplex ability 1 reg. 28, bit 2 reg. 44, bit 2 6 adv 10 full r/w =1, advertise 10 full duplex ability =0, do not advertise 10 full duplex ability 1 reg. 28, bit 1 reg. 44, bit 1 5 adv 10 half r/w =1, advertise 10 half duplex ability =0, do not advertise 10 half duplex ability 1 reg. 28, bit 0 reg. 44, bit 0 4-0 selector field ro 802.3 00001 register 5: auto-negotiation link partner ability bit name r/w description default reference 15 next page ro not supported 0 14 lp ack ro not supported 0 13 remote fault ro not supported 0 12-11 reserved ro 0 10 pause ro link partner pause capability 0 reg. 30, bit 4 reg. 46, bit 4 9 reserved ro 0 8 adv 100 full ro link partner 100 full capability 0 reg. 30, bit 3 reg. 46, bit 3 7 adv 100 half ro link partner 100 half capability 0 reg. 30, bit 2 reg. 46, bit 2 6 adv 10 full ro link partner 10 full capability 0 reg. 30, bit 1 reg. 46, bit 1 5 adv 10 half ro link partner 10 half capability 0 reg. 30, bit 0 reg. 46, bit 0 4-0 reserved ro 00000
micrel, inc. KS8993F/fl june 2009 50 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 4 register map: switch, mc, & phy (8 bits registers) global registers register (decimal) register (hex) description 0-1 0x00 - 0x01 chip id registers 2-11 0x02 - 0x0b global control registers 12 0x0c reserved register 13-15 0x0d - 0x0f user defined registers port registers register (decimal) register (hex) description 16-29 0x10 ? 0x1d port 1 control registers, including mii phy registers 30-31 0x1e ? 0x1f port 1 status registers, including mii phy registers 32-45 0x20 ? 0x2d port 2 control registers, including mii phy registers 46-47 0x2e ? 0x2f port 2 status registers, including mii phy registers 48-61 0x30 ? 0x3d port 3 control registers, including mii phy registers 62-63 0x3e ? 0x3f port 3 status registers, including mii phy registers media converter registers register (decimal) register (hex) description 64 0x40 phy address 65 0x41 center side status 66 0x42 center side command 67 0x43 phy-sw initialize 68 0x44 loop back setup1 69 0x45 loop back setup2 70 0x46 loop back result counter for crc error 71 0x47 loop back result counter for timeout 72 0x48 loop back result counter for good packet 73 0x49 additional status 74 0x4a remote command1 75 0x4b remote command2 76 0x4c remote command3 77 0x4d valid mc packet transmitted counter 78 0x4e valid mc packet received counter 79 0x4f shadow of register 0x58h 80 0x50 my status 1 81 0x51 my status 2 82 0x52 my vendor info (1) 83 0x53 my vendor info (2) 84 0x54 my vendor info (3) 85 0x55 my model info (1) 86 0x56 my model info (2) 87 0x57 my model info (3) 88 0x58 lnk partner status (1) 89 0x59 lnk partner status (2) 90 0x5a lnk partner vendor info (1) 91 0x5b lnk partner vendor info (2)
micrel, inc. KS8993F/fl june 2009 51 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 92 0x5c lnk partner vendor info (3) 93 0x5d lnk partner model info (1) 94 0x5e lnk partner model info (2) 95 0x5f lnk partner model info (3) advanced control registers register (decimal) register (hex) description 96-103 0x60-0x67 tos priority control registers 104-109 0x68-0x6d switch engine?s mac address registers 110-111 0x6e-0x6f indirect access control registers 112-120 0x70-0x78 indirect data registers 121-122 0x79-0x7a digital testing status registers 123-124 0x7b-0x7c digital testing control registers 125-126 0x7d-0x7e analog testing control registers 127 0x7f analog testing status register 4.1 global registers register 0 (0x00): chip id0 bit name r/w description default 7-0 family id ro chip family 0x93 register 1 (0x01): chip id1 / start switch bit name r/w description default 7-4 chip id ro 0x0 is assigned to f series. (93f) 0x0 3-1 revision id ro revision id - 0 start switch rw = 1, start the chip when external pins (ps1, ps0) = (0,1), (1,0), or (1,1) note: in (ps1, ps0) = (0, 0) mode, the chip will start automatically after trying to read the external eeprom. if eeprom does not exists, the chip will use pin strapping and default values for all internal registers. if eeprom is present, the contents in the eeprom will be checked. the switch will check: (1) register 0 = 0x93, (2) register 1 bits [7:4] = 0x0. if this check is ok, the contents in the eeprom will override chip register default values. = 0, chip will not start when external pins (ps1, ps0) = (0,1), (1,0), or (1,1) - register 2 (0x02): global control 0 bit name r/w description default 7 new back-off enable r/w new back-off algorithm designed for unh 1 = enable 0 = disable 0x0 6-4 802.1p base priority r/w used to classify priority for incoming 802.1q packets. ?user priority? is compared against this value. 0x4
micrel, inc. KS8993F/fl june 2009 52 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 >= : classified as high priority < : classified as low priority 3 pass flow control packet r/w = 1, switch will not filter 802.1x ?flow control? packets 0x0 2 buffer share mode r/w = 1, buffer pool is shared by all ports. a port can use more buffer when other ports are not busy. = 0, a port is only allowed to use 1/3 of the buffer pool 0x1 1 reserved r/w reserved 0 0 link change age r/w = 1, link change from ?link? to ?no link? will cause fast aging (<800us) to age address table faster. after an age cycle is complete, the age logic will return to normal (about 200 seconds). note: if any port is unplugged, all addresses will be automatically aged out. 0 register 3 (0x03): global control 1 bit name r/w description default 7 pass all frames r/w = 1, switch all packets including bad ones. used solely for debugging purposes. works in conjunction with sniffer mode only. 0 6 repeater mode r/w = 0, normal mode = 1, repeater mode (half duplex hub mode) 0 5 ieee 802.3x transmit direction flow control enable r/w = 1, will enable transmit direction flow control feature. = 0, will not enable transmit direction flow control feature. switch will not generate any flow control packets. 1 4 ieee 802.3x receive direction flow control enable r/w = 1, will enable receive direction flow control feature. = 0, will not enable receive direction flow control feature. switch will not react to any received flow control packets. 1 3 frame length field check r/w = 1, will check frame length field in the ieee packets. if the actual length does not match, the packet will be dropped (for length/type field < 1500). 0 2 aging enable r/w = 1, enable age function in the chip = 0, disable age function in the chip 1 1 fast age enable r/w = 1, turn on fast age (800 us) 0 0 aggressive back off enable r/w = 1, enable more aggressive back off algorithm in half duplex mode to enhance performance. this is not an ieee standard. smac (pin 69) value during reset
micrel, inc. KS8993F/fl june 2009 53 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 4 (0x04): global control 2 bit name r/w description default 7 unicast port-vlan mismatch discard r/w this feature is used for port-vlan and is described in reg. 17, reg. 33, ...) = 1, all packets can not cross vlan boundary = 0, unicast packets (excluding unkown/multicast/broadcast) can cross vlan boundary. note: port mirroring is not supported if this bit is set to ?0?. 1 6 multicast storm protection disable r/w = 1, ?broadcast storm protection? does not include multicast packets. only da = ffffffffffff packets will be regulated. = 0, ?broadcast storm prot ection? incl udes da = ffffffffffff and da[40] = 1 packets. 1 5 back pressure mode r/w = 1, carrier sense based backpressure is selected = 0, collision based backpressure is selected 1 4 flow control and back pressure fair mode r/w = 1, fair mode is selected. in this mode, if a flow control port and a non-flow control port talk to the same destination port, packets from the non-flow control port may be dropped. this is to prevent the flow control port from being flow controlled for an extended period of time. = 0, in this mode, if a flow control port and a non-flow control port talk to the same destination port, the flow control port will be flow controlled. this may not be ?fair? to the flow control port. 1 3 no excessive collision drop r/w = 1, the switch will not drop packets when 16 or more collisions occur. = 0, the switch will drop packets when 16 or more collisions occur. smac (pin 69) value during reset 2 huge packet support r/w = 1, will accept packet sizes up to 1916 bytes (inclusive). this bit setting will override setting from bit 1 of the same register. = 0, the max packet size will be determined by bit 1 of this register. 0 1 legal maximum packet size check enable r/w = 0, will accept packet sizes up to 1536 bytes (inclusive). = 1, 1522 bytes for tagged packets, 1518 bytes for untagged packets. any packets larger than the specified value will be dropped. smrxd0 (pin 85) value during reset 0 priority buffer reserve r/w = 1, each output queue is pre-allocated 48 buffers, used exclusively for high priority packets. it is recommended to enable this when priority queue feature is turned on. = 0, no reserved buffers for high priority packets. 1 register 5 (0x05): global control 3 bit name r/w description default 7 802.1q vlan enable r/w = 1, 802.1q vlan mode is turned on. vlan table needs to set up before the operation. = 0, 802.1q vlan is disabled. 0 6 reserved r/w 0
micrel, inc. KS8993F/fl june 2009 54 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 5 reserved r/w 0 4 reserved r/w 0 3-2 priority scheme select r/w 00 = always deliver high priority packets first 01 = deliver high/low packets at ratio 10/1 10 = deliver high/low packets at ratio 5/1 11 = deliver high/low packets at ratio 2/1 00 1 reserved r/w 0 0 sniff mode select r./w = 1, will do rx and tx sniff (both source port and destination port need to match) = 0, will do rx or tx sniff (either source port or destination port needs to match). this is the mode used to implement rx only sniff. 0 register 6 (0x06): global control 4 bit name r/w description default 7 reserved r/w 0 6 switch mii half duplex mode r/w =1, enable mii interface half duplex mode. =0, enable mii interface full duplex mode. pin smrxd2 strap option. pull down(0): full duplex mode pull up(1): half duplex mode note: smrxd2 has internal pull down 5 switch mii flow control enable r/w = 1, enable full duplex flow control on switch mii interface. = 0, disable full duplex flow control on switch mii interface. pin smrxd3 strap option. pull down(0): disable flow control pull up(1): enable flow control note: smrxd3 has internal pull down 4 switch mii r/w = 1, the switch interface is in 10mbps mode pin
micrel, inc. KS8993F/fl june 2009 55 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 10bt = 0, the switch interface is in 100mbps mode smrxd1 strap option. pull down(0): enable 100mbps pull up(1): enable 10mbps note: smrxd1 has internal pull down 3 null vid replacement r/w = 1, will replace null vid with port vid(12 bits) = 0, no replacement for null vid 0 2-0 broadcast storm protection rate bit [10:8] r/w this register along with the next register determines how many ?64 byte blocks? of packet data allowed on an input port in a preset period. the period is 67ms for 100bt or 500ms for 10bt. the default is 1%. 000 register 7 (0x07): global control 5 bit name r/w description default 7-0 broadcast storm protection rate bit [7:0] r/w this register along with the previous register determines how many ?64 byte blocks? of packet data are allowed on an input port in a preset period. the period is 67ms for 100bt or 500ms for 10bt. the default is 1%. 0x63 100bt rate: 148,800 frames/sec * 67 ms/interval * 1% = 99 frames/interval (approx.) = 0x63 register 8 (0x08): global control 6 bit name r/w description default 7-0 factory testing r/w reserved 0x4e register 9 (0x09): global control 7 bit name r/w description default 7-0 factory testing r/w reserved 0x24 register 10 (0x0a): global control 8 bit name r/w description default 7-0 factory testing r/w reserved 0x24 register 11 (0x0b): global control 9 bit name r/w description default 7 reserved reserved 0
micrel, inc. KS8993F/fl june 2009 56 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6 phy power save r/w = 1, enable phy power save mode = 0, disable phy power save mode 0 5 crc drop r/w in mc loop back mode, = 1, drop oam frames and ethernet frames with the following errors ? crc, undersize, oversize. loop back ethernet frames with only good crc and valid length. = 0, drop oam frames only. loop back all ethernet frames including those with errors. p1lcrcd (pin 18) value during reset 4 reserved rw testing mode, must be 0 0 3 mclbm1 r/w 1 2 mclbm0 r/w mclbm1 mclbm0 loop back position 1 0 at port 2 mac mclbm[1:0] = {0,0}, {0,1} and {1,1} are reserved. do not use these settings. p1lpbm (pin 19) value during reset. this value needs to be ?0?. 1 led mode r/w this register bit sets the ledsel0 selection only. ledsel1 is set via strap-in pin. port x led indicators , defined as below: [ledsel1, ledsel0] [0, 0] [0, 1] pxled3 ------ ------ pxled2 link/act 100link/act pxled1 full_dpx/col 10link/act pxled0 speed full_dpx [ledsel1, ledsel0] [1, 0] [1, 1] pxled3 act ------ pxled2 link ------ pxled1 full_dpx/col ------ pxled0 speed ------ notes: ledsel0 is external strap-in pin #70. ledsel1 is external strap-in pin #23. ledsel0 (pin 70) value during reset 0 reserved r/w reserved 0 register 12 (0x0c): reserved register bit name r/w description default 7-0 reserved reserved 0x00 register 13 (0x0d): user defined register 1 bit name r/w description default 7-0 udr1 r/w 0x00
micrel, inc. KS8993F/fl june 2009 57 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 14 (0x0e): user defined register 2 bit name r/w description default 7-0 udr2 r/w 0x00 register 15 (0x0f): user defined register 3 bit name r/w description default 7-0 udr3 r/w 0x00 4.2 port registers the following registers are used to enable features that are assigned on a per port basis. the register bit assignments are the same for all ports, but the address for each port is different, as indicated. register 16 (0x10): port 1 control 0 register 32 (0x20): port 2 control 0 register 48 (0x30): port 3 control 0 bit name r/w description default 7 broadcast storm protection enable r/w = 1, enable broadcast storm protection for ingress packets on the port = 0, disable broadcast storm protection 0 6 diffserv priority classification enable r/w = 1, enable diffserv priority classification for ingress packets on port = 0, disable diffserv function 0 5 802.1p priority classification enable r/w = 1, enable 802.1p priority classification for ingress packets on port = 0, disable 802.1p pin value during reset: p1_1pen (port 1), p2_1pen (port 2), p3_1pen (port 3) 4 port based priority classification enable r/w = 1, ingress packets on the port will be classified as high priority if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. = 0, ingress packets on port will be classified as low priority if ?diffserv? or ?802.1p? classification is not enabled or fails to classify. note: ?diffserv?, ?802.1p? and port priority can be enabled at the same time. the or?ed result of 802.1p and dscp overwrites the port priority. pin value during reset: p1_pp (port 1), p2_pp (port 2), p3_pp (port 3) 3 user priority ceiling r/w = 1, if the packet?s ?user priority field? is greater than the ?user priority field? in the port default tag register, replace the packet?s ?user priority field? with the ?user priority field? in the port default tag register. = 0, do no compare and replace the packet?s ?user priority field? 0 2 tag insertion r/w = 1, when packets are output on the port, the switch will add 802.1p/q tags to packets without 802.1p/q tags when received. the switch will not add tags to packets already tagged. the tag inserted is the ingress port?s ?port vid?. pin value during reset: p1_tagins (port 1), p2_tagins (port 2),
micrel, inc. KS8993F/fl june 2009 58 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 = 0, disable tag insertion p3_tagins (port 3) 1 tag removal r/w = 1, when packets are output on the port, the switch will remove 802.1p/q tags from packets with 802.1p/q tags when received. the switch will not modify packets received without tags. = 0, disable tag removal pin value during reset: p1_tagrm (port 1), p2_tagrm (port 2), p3_tagrm (port 3) 0 priority enable r/w = 1, the port output queue is split into high and low priority queues. = 0, single output queue on the port. there is no priority differentiation even though packets are classified into high or low priority. pin value during reset: p1_txq2 (port 1), p2_txq2 (port 2), p3_txq2 (port 3) register 17 (0x11): port 1 control 1 register 33 (0x21): port 2 control 1 register 49 (0x31): port 3 control 1 bit name r/w description default 7 sniffer port r/w = 1, port is designated as sniffer port and will transmit packets that are monitored. = 0, port is a normal port 0 6 receive sniff r/w = 1, all the packets received on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port? = 0, no receive monitoring 0 5 transmit sniff r/w = 1, all the packets transmitted on the port will be marked as ?monitored packets? and forwarded to the designated ?sniffer port? = 0, no transmit monitoring 0 4 double tag r/w = 1, all packets will be tagged with port default tag of ingress port regardless of the original packets are tagged or not = 0, do not double tagged on all packets 0 3 reserved r/w 0 2-0 port vlan membership r/w define the port?s port vlan membership. bit 2 stands for port 3, bit 1 for port 2, and bit 0 for port 1. the port can only communicate within the membership. an ?1? includes a port in the membership; an ?0? excludes a port from the membership. pin value during reset: for port 1, (pv13, pv12, 1) for port 2, (pv23, 1, pv21) for port 3, (1, pv32, pv31) register 18 (0x12): port 1 control 2 register 34 (0x22): port 2 control 2 register 50 (0x32): port 3 control 2 bit name r/w description default
micrel, inc. KS8993F/fl june 2009 59 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 7 reserved reserved 0 6 ingress vlan filtering r/w = 1, the switch will discard packets whose vid port membership in vlan table bits [18:16] does not include the ingress port. = 0, no ingress vlan filtering 0 5 discard non pvid packets r/w = 1, the switch will discard packets whose vid does not match ingress port default vid. = 0, no packets will be discarded 0 4 force flow control r/w = 1, will always enable flow control on the port, regardless of an result. = 0, the flow control is enabled based on an result. pin value during reset: for port 1, p1ffc pin for port 2, p2ffc pin for port 3, this bit has no meaning. flow control is controlled by reg. 6, bit 5 3 back pressure enable r/w = 1, enable port?s half duplex back pressure = 0, disable port?s half duplex back pressure. pin value during reset: bpen pin 2 transmit enable r/w = 1, enable packet transmission on the port = 0, disable packet transmission on the port 1 1 receive enable r/w = 1, enable packet reception on the port = 0, disable packet reception on the port 1 0 learning disable r/w = 1, disable switch address learning capability = 0, enable switch address learning capability 0 register 19 (0x13): port 1 control 3 register 35 (0x23): port 2 control 3 register 51 (0x33): port 3 control 3 bit name r/w description default 7-0 default tag [15:8] r/w port?s default tag, containing 7-5 : user priority bits 4 : cfi bit 3-0 : vid[11:8] 0x00 register 20 (0x14): port 1 control 4 register 36 (0x24): port 2 control 4 register 52 (0x34): port 3 control 4 bit name r/w description default 7-0 default tag [7:0] r/w port?s default tag, containing 7-0 : vid[7:0] 0x01 note: registers 19 and 20 (and those correspondi ng to other ports) serve two purposes: (1) associated with the ingress untagged packets, and used for egress tagging. (2) default vid for the ingress untagged or null-vid-tagged packets, and used for address look up.
micrel, inc. KS8993F/fl june 2009 60 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 21 (0x15): port 1 control 5 register 37 (0x25): port 2 control 5 register 53 (0x35): port 3 control 5 bit name r/w description default 7-0 transmit high priority rate control [7:0] r/w this register along with port control 7, bits [3:0] form a 12-bits field to determine how many ?32kbps? high priority blocks can be transmitted. (in a unit of 4k bytes in a one second period). 0x00 register 22 (0x16): port 1 control 6 register 38 (0x26): port 2 control 6 register 54 (0x36): port 3 control 6 bit name r/w description default 7-0 transmit low priority rate control [7:0] r/w this register along with port control 7, bits [7:4] form a 12-bits field to determine how many ?32kbps? low priority blocks can be transmitted. (in a unit of 4k bytes in a one second period). 0x00 register 23 (0x17): port 1 control 7 register 39 (0x27): port 2 control 7 register 55 (0x37): port 3 control 7 bit name r/w description default 7-4 transmit low priority rate control [11:8] r/w these bits along with port control 6, bits [7:0] form a 12-bits field to determine how many ?32kbps? low priority blocks can be transmitted. (in a unit of 4k bytes in a one second period) 0x0 3-0 transmit high priority rate control [11:8] r/w these bits along with port control 5, bits [7:0] form a 12-bits field to determine how many ?32kbps? high priority blocks can be transmitted. (in a unit of 4k bytes in a one second period) 0x0 register 24 (0x18): port 1 control 8 register 40 (0x28): port 2 control 8 register 56 (0x38): port 3 control 8 bit name r/w description default 7-0 receive high priority rate control [7:0] r/w this register along with port control 10, bits [3:0] form a 12-bits field to determine how many ?32kbps? high priority blocks can be received. (in a unit of 4k bytes in a one second period) 0x00 register 25 (0x19): port 1 control 9 register 41 (0x29): port 2 control 9 register 57 (0x39): port 3 control 9 bit name r/w description default 7-0 receive low priority rate control [7:0] r/w this register along with port control 10, bits [7:4] form a 12-bits field to determine how many ?32kbps? low priority blocks can be received. (in a unit of 4k bytes in a one second period) 0x00 register 26 (0x1a): port 1 control 10 register 42 (0x2a): port 2 control 10 register 58 (0x3a): port 3 control 10 bit name r/w description default 7-4 receive low priority rate control [11:8] r/w these bits along with port control 9, bits [7:0] form a 12-bits field to determine how many ?32kbps? low priority blocks can be received. (in a unit of 4k bytes in a one second period) 0x0
micrel, inc. KS8993F/fl june 2009 61 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 3-0 receive high priority rate control [11:8] r/w these bits along with port control 8, bits [7:0] form a 12-bits field to determine how many ?32kbps? high priority blocks can be received. (in a unit of 4k bytes in a one second period) 0x0 register 27 (0x1b): port 1 control 11 register 43 (0x2b): port 2 control 11 register 59 (0x3b): port 3 control 11 bit name r/w description default 7 receive differential priority rate control r/w = 1, if bit 6 is also ?1?, this will enable receive rate control for this port on low priority packets at the low priority rate. if bit 5 is also ?1?, this will enable receive rate control on high priority packets at the high priority rate. = 0, receive rate control will be based on the low priority rate for all packets on this port. 0 6 low priority receive rate control enable r/w = 1, enable port?s low priority receive rate control feature = 0, disable port?s low priority receive rate control feature 0 5 high priority receive rate control enable r/w = 1, if bit 7 is also ?1?, this will enable the port?s high priority receive rate control feature. if bit 7 is a ?0? and bit 6 is a ?1?, all receive packets on this port will be rate controlled at the low priority rate. = 0, disable port?s high priority receive rate control feature 0 4 low priority receive rate flow control enable r/w = 1, flow control may be asserted if the port?s low priority receive rate is exceeded = 0, flow control is not asserted if the port?s low priority receive rate is exceeded 0 3 high priority receive rate flow control enable r/w = 1, flow control may be asserted if the port?s high priority receive rate is exceeded. (to use this, differential receive rate control must be on) = 0, flow control is not asserted if the port?s high priority receive rate is exceeded. 0 2 transmit differential priority rate control r/w = 1, will do transmit rate control on both high and low priority packets based on the rate counters defined by the high and low priority packets respectively. = 0, will do transmit rate control on any packets. the rate counters defined in low priority will be used. 0 1 low priority transmit rate control enable r/w = 1, enable the port?s low priority transmit rate control feature = 0, disable the port?s low priority transmit rate control feature 0 0 high priority transmit rate control enable r/w = 1, enable the port?s high priority transmit rate control feature = 0, disable the port?s high priority transmit rate control feature 0 note: port control registers 12 and 13, and port status register 0 contents can also be accessed with the miim (mdc/mdio) interface via the standard miim registers. register 28 (0x1c): port 1 control 12 register 44 (0x2c): port 2 control 12 register 60 (0x3c): reserved, not applied to port 3 bit name r/w description default
micrel, inc. KS8993F/fl june 2009 62 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 7 auto negotiation enable r/w = 0, disable auto negotiation, speed and duplex are decided by bit 6 and 5 of the same register. = 1, auto negotiation is on for port 1, p1anen pin value during reset for port 2, p2anen pin value during reset 6 force speed r/w = 1, force 100bt if an is disabled (bit 7) = 0, force 10bt if an is disabled (bit 7) for port 1, p1spd pin value during reset. for port 2, p2spd pin value during reset 5 force duplex r/w = 1, force full duplex if (1) an is disabled or (2) an is enabled but failed. = 0, force half duplex if (1) an is disabled or (2) an is enabled but failed. for port 1, p1dpx pin value during reset. for port 2, p2dpx pin value during reset 4 advertised flow control capability r/w = 1, advertise flow control (pause) capability = 0, suppress flow control (pause) capability from transmission to link partner advfc pin value during reset 3 advertised 100bt full duplex capability r/w = 1, advertise 100bt full duplex capability = 0, suppress 100bt full duplex capability from transmission to link partner 1 2 advertised 100bt half duplex capability r/w = 1, advertise 100bt half duplex capability = 0, suppress 100bt half duplex capability from transmission to link partner 1 1 advertised 10bt full duplex capability r/w = 1, advertise 10bt full duplex capability = 0, suppress 10bt full duplex capability from transmission to link partner 1 0 advertised 10bt half duplex capability r/w = 1, advertise 10bt half duplex capability = 0, suppress 10bt half duplex capability from transmission to link partner 1 register 29 (0x1d): port 1 control 13 register 45 (0x2d): port 2 control 13 register 61 (0x3d): reserved, not applied to port 3 bit name r/w description default 7 led off r/w = 1, turn off all port?s leds (ledx_3, ledx_2, ledx_1, ledx_0, where ?x? is the port number). these pins will be driven high if this bit is set to one. 0
micrel, inc. KS8993F/fl june 2009 63 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 = 0, normal operation 6 txids r/w = 1, disable port?s transmitter = 0, normal operation 0 5 restart an r/w = 1, restart auto negotiation = 0, normal operation 0 4 disable far- end fault r/w = 1, disable far-end fault detection & pattern transmission. = 0, enable far-end fault detection & pattern transmission 0 note: only port 1 supports fiber. this bit is applicable to port 1 only. 3 power down r/w = 1, power down = 0, normal operation 0 2 disable auto mdi/mdi-x r/w = 1, disable auto mdi/mdi-x function = 0, enable auto mdi/mdi-x function 0 for port 2, p2mdixdis pin value during reset 1 force mdi r/w if auto mdi/mdi-x is disabled, = 1, force phy into mdi mode (transmit on rxp/rxm pins) = 0, force phy into mdi-x mode (transmit on txp/txm pins) 0 for port 2, p2mdix pin value during reset 0 reserve r/w = 1, reserve = 0, normal operation 0 register 30 (0x1e): port 1 status 0 register 46 (0x2e): port 2 status 0 register 62 (0x3e): reserved, not applied to port 3 bit name r/w description default 7 mdi-x status ro = 1, mdi-x = 0, mdi 0 6 an done ro = 1, an done = 0, an not done 0 5 link good ro = 1, link good = 0, link not good 0 4 partner flow control capability ro = 1, link partner flow control (pause) capable = 0, link partner not flow control (pause) capable 0 3 partner 100bt full duplex capability ro = 1, link partner 100bt full duplex capable = 0, link partner not 100bt full duplex capable 0 2 partner 100bt half duplex capability ro = 1, link partner 100bt half duplex capable = 0, link partner not 100bt half duplex capable 0
micrel, inc. KS8993F/fl june 2009 64 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 1 partner 10bt full duplex capability ro = 1, link partner 10bt full duplex capable = 0, link partner not 10bt full duplex capable 0 0 partner 10bt half duplex capability ro = 1, link partner 10bt half duplex capable = 0, link partner not 10bt half duplex capable 0 register 31 (0x1f): port 1 status 1 register 47 (0x2f): port 2 status 1 register 63 (0x3f): port 3 status 1 bit name r/w description default 7 reserved ro 0 6-5 reserved ro 00 4 receive flow control enable ro 1 = receive flow control feature is active 0 = receive flow control feature is inactive 0 3 transmit flow control enable ro 1 = transmit flow control feature is active 0 = transmit flow control feature is inactive 0 2 operation speed ro 1 = link speed is 100mbps 0 = link speed is 10mbps 0 1 operation duplex ro 1 = link duplex is full 0 = link duplex is half 0 0 far-end fault ro 1 = far-end fault status detected 0 = no far-end fault status detected 0 note: only port 1 supports fiber. this bit is applicable to port 1 only.
micrel, inc. KS8993F/fl june 2009 65 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 4.3 media converter registers register 64 (0x40): phy address bit name r/w description default 7?5 reserved ro n/a 000 4 addr4 r/w 0 3 addr3 r/w 0 2 addr2 r/w 0 1 addr1 r/w 0 0 addr0 r/w for center side mc mode , these bits are port 1?s phy address. 0 0000 : n/a 0 0001 : port 1?s phy address is 0x01h 0 0011 : port 1?s phy address is 0x03h other values : n/a for terminal side mc mode , these bits are fixed at 0x01h for port 1?s phy address. notes (1) if pins [mchs,mccs] = [0,1], a write to these bits with port 1?s phy address is required to enable port 1 and start the center side mc. (2) if pins [mchs,mccs] = [0,1], the miim bus can only access port 1. (3) if pins [mchs, mccs] != [0,1], the miim bus will access port 1 using phy address 0x01h and port 2 using phy address 0x02h. 1 register 65 (0x41): center side status bit name r/w description default 7 busy ro 1 = indicate mc loop back mode inprogress, or receive reply frame/timeout is pending 0 = exclude the above situations 0 6 vendor mode r/w 1 = non special vendor mode 0 = special vendor mode (compare my & lnk partner vendor info = 0x009099h) 0 5?3 reserved ro reserved 000 2 option b r/w 1 = clear status bits s6 to s10 to zero on terminal mc side 0 = normal operation ? supporting option b 0 1 option a r/w 1 = disable ?indicate center mc condition? frame 0 = enable ?indicate center mc condition? frame 0 0 request ro 1 = indicate change of status/value in registers # 0x50h, 0x51h, 0x58h, 0x59h, 0x5dh, 0x5eh, 0x5fh. this bit is self-cleared after a read. 0 = exclude the above situations 0 note: this register is managed by the center side.
micrel, inc. KS8993F/fl june 2009 66 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 66 (0x42): center side command bit name r/w description default 7?5 timer delay r/w 000 = reserved (do not use) 001 = 32us (default) 010 = 128us 011 = 256us 100 = 512us 101 = 1ms 110 = 2m 111 = 4ms 001 4 com4 r/w 0 3 com3 r/w 0 2 com2 r/w 0 1 com1 r/w 0 0 com0 r/w to send a maintenance frame, an external controller writes to these command bits via the smi, spi, or i2c interface. 0 0000 : no request 0 0001 : send ?condition inform request? frame 0 0010 : send ?loop mode start request? frame 0 0100 : send ?loop mode stop request? frame 0 1000 : send ?remote command?. here, the maintenance frame will be made up of the ?condition inform request/reply? frame, but the my model info bits mm24-mm47 will be mapped to registers 4ah-4ch, instead of registers 55h-57h. 1 0000 : send ?indicate center/terminal mc condition? frame. usually, ?indicate center/terminal mc condition? frame will be sent automatically. but this oam frame can be sent manually using this command. other values : n/a note except for the ?indicate center/terminal mc condition? frame, all maintenance frames here are sent by the center side mc only. 0 register 67 (0x43): phy-sw initialize bit name r/w description default 7 p2 speed r/w 1 = 100mbps 0 = 10mbps this bit share the same physical register as reg. 2ch bit 6. p2spd pin value during reset 6 p2 duplex r/w 1 = full duplex 0 = half duplex this bit share the same physical register as reg. 2ch bit 5. p2dpx pin value during reset 5 p2 auto negotiation r/w 1 = an enable 0 = an disable this bit share the same physical register as reg. 2ch bit 7. p2anen pin value during reset
micrel, inc. KS8993F/fl june 2009 67 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 4 sw reset r/w 1 = reset mc sub-layer, macs of both phy ports and switch fabric to their default states. this bit is self-cleared after an ?1? is written to it. 0 = normal operation 0 3 remote command enable r/w 1 = enable ?remote command? access at center side and terminal side 0 = disable ?remote command? access at center side and terminal side 0 2 enhanced ml_en r/w 1 = defined as follows: in terminal side mc mode , if a link down is detected on the fiber or the center side utp, the terminal side will disable the tx on its utp and turn off the leds to its utp. in center side mc mode , this bit has no meaning. 0 = normal operation ml_en pin value during reset 1 p1 tx_dis r/w 1 = disable (tri-state) transmit to fiber phy (port 1) 0 = normal operation 0 0 phy reset r/w 1 = reset the phy of both phy ports to their default states. this bit is self-cleared after an ?1? is written to it. 0 = normal operation note: mc (m aintenance) sub-layer registers are not reset by this bit. 1 (powered on value in center side mc mode. after reg. 0x40h is program- med, this bit will be cleared.) ---------------- 0 (default value for non center side mc mode)
micrel, inc. KS8993F/fl june 2009 68 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 68 (0x44): loop back setup1 bit name r/w description default 7 t7 r/w 0 6 t6 r/w 0 5 t5 r/w 0 4 t4 r/w 0 3 t3 r/w 0 2 t2 r/w 1 1 t1 r/w 1 0 t0 r/w center and terminal sides 0000_0000 : clear valid transmit and valid receive counters in registers 4dh and 4eh. also for center side, clear loop back counters in registers 46h, 47h and 48h. center side only 0000_0001 : send 1 mc loop back packet 0000_0010 : send 2 mc loop back packets : 0000_0111 : send 7 mc loop back packets (default) : 0110_0100 : send 100 mc loop back packets other values (0x65h to 0xffh) : n/a 1 register 69 (0x45): loop back setup2 bit name r/w description default 7 p7 r/w 0 6 p6 r/w 0 5 p5 r/w 0 4 p4 r/w 0 3 p3 r/w 0 2 p2 r/w 0 1 p1 r/w 0 0 p0 r/w center side only use to select pattern for mc loop back packet 0000_0000 : 64 bytes da: unicast data: 55aa 0000_0001 : 1518 bytes da: unicast data: 55aa 0000_0010 : 64 bytes da: broadcast data: 55aa 0000_0100 : 1518 bytes da: broadcast data: 55aa 0000_1000 : 64 bytes da: unicast data: 0f0f 0001_0000 : 1518 bytes da: unicast data: 0f0f 0010_0000 : 64 bytes da: broadcast data: 0f0f 0100_0000 : 1518 bytes da: broadcast data: 0f0f 1000_0000 : 1518 bytes da: broadcast data: ff00 other values : n/a where the packet?s: da is [register #52h][register #53h][register #54h] [register #55h][register #56h]([register #57h] + 1). and the last byte ([register #57h] + 1) increments repeatedly by 1 for the next loop back packet. sa is [register #52h][register #53h][register #54h] [register #55h][register #56h][register #57h] type/length is 0x0800h 0
micrel, inc. KS8993F/fl june 2009 69 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 70 (0x46): loop back result counter for crc error bit name r/w description default 7 crc7 ro 0 6 crc6 ro 0 5 crc5 ro 0 4 crc4 ro 0 3 crc4 ro 0 2 crc2 ro 0 1 crc1 ro 0 0 crc0 ro center side only this counter is incremented when loop back packet has crc error. 0000_0000 : no crc error received 0000_0001 : 1 crc error received : 1111_1111 : 255 crc errors received this counter is cleared when 0x00h is written to reg. 0x44h. 0 register 71 (0x47): loop back result counter for timeout bit name r/w description default 7 to7 ro 0 6 to6 ro 0 5 to5 ro 0 4 to4 ro 0 3 to3 ro 0 2 to2 ro 0 1 to1 ro 0 0 to0 ro center side only this counter is incremented when loop back packet has timeout. 0000_0000 : no timeout occurred 0000_0001 : 1 timeout occurred : 1111_1111 : 255 timeouts occurred this counter is cleared when 0x00h is written to reg. 0x44h. 0 register 72 (0x48): loop back result counter for good packet bit name r/w description default 7 go7 ro 0 6 go6 ro 0 5 go5 ro 0 4 go4 ro 0 3 go3 ro 0 2 go2 ro 0 1 go1 ro 0 0 go0 ro center side only this counter is incremented when loop back packet is returned good. 0000_0000 : no good packet 0000_0001 : 1 good packet : 1111_1111 : 255 good packets this counter is cleared when 0x00h is written to reg. 0x44h. 0 register 73 (0x49): additional status (center and terminal side) bit name r/w description default 7 hard version 1 ro 0 6 hard version 0 ro hard version (bits [7:6]) 1 5 model version 1 rw 0 4 model version 0 rw model version (bits [5:4]): 00: 15km model 01: 40km model others: reserved 0 3 hmc loop ro 1 = center side receives ?loop mode stop indication? frame from the 0
micrel, inc. KS8993F/fl june 2009 70 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 back timeout terminal side. this bit is self-cleared after it is read. 0 = normal operation 2 cmc loop back timeout ro 1 = center side is in loop back mode too long and the t1 timer has timeout. this bit is self-cleared after it is read. 0 = normal operation 0 1 timeout ro 1 = center side does not receive reply frame from the terminal side and the te timer has timeout. this bit is self-cleared after it is read. 0 = normal operation 0 0 p1 lnk down ro 1 = link is down on port 1 0 = link is up on port 1 0 note: registers 74, 75 and 76 are accessed by the center side only register 74 (0x4a): remote command 1 bit name r/w description default 7 amm31 r/w 0 6 amm30 r/w reserved (these two bits must be set to ?00? for normal operation) 0 5 amm29 r/o 1 4 amm28 r/o indicate support capability for ?a-vendor? only. if operating mode (bits[1:0] of this register) is set to ?10?, these two bits are used by ?a-vendor? to indicate support for ?extended mode?. 10: support ?extended mode? others: reserved 0 3 amm27 r/w 0 2 amm26 r/w operating code if operating mode (bits[1:0] of this register) is set to ?10?, these two bits are used to select one of the following operating codes: 00: read reply 01: read request 10: write reply 11: write request 0 1 amm25 r/w 1 0 amm24 r/w operating mode select between ?normal mode? and ?extended mode?, defined as follows: 00: normal mode, mm24-mm47 (registers 0x55h to 0x57h) are used for my model info. 10: extended mode, mm24-mm47 (registers 0x55h to 0x57h) are mapped to remote command (registers 0x4ah to 0x4ch) 01: reserved 11: reserved 0 register 75 (0x4b): remote command 2 bit name r/w description default 7 amm39 r/w 0 6 amm38 r/w 0 5 amm37 r/w 0 4 amm36 r/w 0 3 amm35 r/w 0 2 amm34 r/w 0 1 amm33 r/w 0 0 amm32 r/w if center mc sends the ?remote command? in register 0x42h, this register value will be used for m39-m32 of the maintenance frame, instead of register 0x56h. [amm39:amm32] = bits[7:0] of the KS8993F address byte if the operating mode in register 0x4ah bits[1:0] is set to ?10? 0
micrel, inc. KS8993F/fl june 2009 71 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 76 (0x4c): remote command 3 bit name r/w description default 7 amm47 r/w 0 6 amm46 r/w 0 5 amm45 r/w 0 4 amm44 r/w 0 3 amm43 r/w 0 2 amm42 r/w 0 1 amm41 r/w 0 0 amm40 r/w if center mc sends the ?remote command? in register 0x42h, this register value will be used for m47-m40 of the maintenance frame, instead of register 0x57h. [amm47:amm40] = bits[7:0] of the KS8993F data byte if the operating mode in register 0x4ah bits [1:0] is set to ?10? 0 register 77 (0x4d): valid mc packet transmitted counter bit name r/w description default 7 vmtx7 ro 0 6 vmtx6 ro 0 5 vmtx5 ro 0 4 vmtx4 ro 0 3 vmtx3 ro 0 2 vmtx2 ro 0 1 vmtx1 ro 0 0 vmtx0 ro at both the center and terminal sides, this counter is incremented when a valid maintenance packet is transmitted. 0000_0000 : no valid maintenance packet transmitted 0000_0001 : 1 valid maintenance packet transmitted : 1111_1111 : 255 valid maintenance packets transmitted this counter is cleared when 0x00h is written to reg. 0x44h. 0 register 78 (0x4e): valid mc packet received counter bit name r/w description default 7 vmrx7 ro 0 6 vmrx6 ro 0 5 vmrx5 ro 0 4 vmrx4 ro 0 3 vmrx3 ro 0 2 vmrx2 ro 0 1 vmrx1 ro 0 0 vmrx0 ro at both the center and terminal sides, this counter is incremented when a valid maintenance packet (good crc, valid op code, valid direction) is received. 0000_0000 : no valid maintenance packet received 0000_0001 : 1 valid maintenance packet received : 1111_1111 : 255 valid maintenance packets received this counter is cleared when 0x00h is written to reg. 0x44h. 0 register 79 (0x4f): shadow of 0x58h register bit name r/w description default 7-0 sha7-0 ro this register is shadow of 0x58h register when the opt link is up. 0x07 (terminal side) ---------- 0x47 (center side)
micrel, inc. KS8993F/fl june 2009 72 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 80 (0x50): my status 1 (terminal and center side) bit name r/w description default 7 s7 ro h-mc link speed 1 0 6 s6 ro h-mc link option 1 = terminal mc mode 0 = center mc mode 1 (terminal side) 0 (center side) 5 s5 ro loop back mode indication 1 = in loop back state (cst1, cst2, ust1) 0 = normal 0 4 s4 r/w loss of optical signal notification 1 = use fefi 0 = use maintenance frame (center side - cpu will update this bit terminal side - hardware will update this bit based on external pin value) 0 3 s3 r/w diag result 1 = diagnostic fail 0 = normal operation (center side - cpu will update this bit. terminal side - this bit will be updated through diagf pin.) diagf pin value diagf (ipd) 2 s2 r/w utp link down 1 = link down 0 = link up (center side - cpu will update this bit. terminal side - this bit is read only and updated by hardware.) 1 1 s1 ro sd disable 1 = abnormal (no optical signal detected) 0 = normal (optical signal detected) 1 0 s0 ro power down 1 = power down 0 = normal operation inverse of pdd# pin value pdd# (ipu) register 81 (0x51): my status 2 bit name r/w description default 7-4 s15 ? s12 ro reserved 0 3 s11 r/w number of physical interface making up the utp link 0 = one 1 = greater than one 0 2 s10 r/w for terminal mc mode, this bit indicates the auto negotiation capability. for center mc mode, this bit must always be ?0?. 1 = auto negotiation is supported 0 = auto negotiation is not supported p2anen pin value (terminal mc) ----------------------- 0 (center mc) 1 s9 ro for terminal mc mode, this bit indicates the utp port?s duplex 0
micrel, inc. KS8993F/fl june 2009 73 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 status. for center mc mode, this bit is always ?0?. 1 = full duplex 0 = half duplex, or register 0x50h bit[2] is ?1? (utp link is down) 0 s8 ro for terminal mc mode, this bit indicates the utp port?s speed status. for center mc mode, this bit is always ?0?. 1 = 100mbps 0 = 10 mbps, or register 0x50h bit[2] is ?1? (utp link is down) 0 register 82 (0x52): my vendor info (1) bit name r/w description default 7-0 mm7?mm0 rw 0x00 register 83 (0x53): my vendor info (2) bit name r/w description default 7-0 mm15?mm8 rw 0x00 register 84 (0x54): my vendor info (3) bit name r/w description default 7-0 mm23?mm16 rw 0x00 register 85 (0x55): my model info (1) bit name r/w description default 7-0 mm31?mm24 rw note: if remote command feature is used, this register value can not be set to 0x22, 0x26, 0x2a and 0x2e. all other values are valid. 0x00 register 86 (0x56): my model info (2) bit name r/w description default 7-0 mm39?mm32 rw 0x00 register 87 (0x57): my model info (3) bit name r/w description default 7-0 mm47?mm40 rw 0x00
micrel, inc. KS8993F/fl june 2009 74 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 88 (0x58): lnk partner status (1) bit name r/w description default 7-0 ls7?ls0 ro this register has the same bits descriptions as register 80 (0x50). 0x47 (center side) 0x07 (terminal side) register 89 (0x59): lnk partner status (2) bit name r/w description default 7-0 ls15?ls8 ro this register has the same bits descriptions as register 81 (0x51). 0x00 register 90 (0x5a): lnk partner vendor info (1) bit name r/w description default 7-0 lm7?lm0 ro 0x00 register 91 (0x5b): lnk partner vendor info (2) bit name r/w description default 7-0 lm15?lm8 ro 0x00 register 92 (0x5c): lnk partner vendor info (3) bit name r/w description default 7-0 lm23?lm16 ro 0x00 register 93 (0x5d): lnk partner model info (1) bit name r/w description default 7-0 lm31?lm24 ro 0x00 register 94 (0x5e): lnk partner model info (2) bit name r/w description default 7-0 lm39?lm32 ro 0x00 register 95 (0x5f): lnk partner model info (3) bit name r/w description default 7-0 lm47?lm40 ro 0x00
micrel, inc. KS8993F/fl june 2009 75 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 4.4 advanced control registers the ipv4 tos priority control registers implement a fully decoded 64 bit dscp (differentiated services code point) register used to determine priority from the 6 bit tos field in the ip header. the most significant 6 bits of the tos field are fully decoded into 64 possibilities, and the singular code that results is compared against the corresponding bit in the dscp register. if the register bit is a 1, the priority is high; if it is a 0, the priority is low. register 96 (0x60): tos priority control register 0 bit name r/w description default 7-0 dscp[63:56] r/w 0000_0000 register 97 (0x61): tos priority control register 1 bit name r/w description default 7-0 dscp[55:48] r/w 0000_0000 register 98 (0x62): tos priority control register 2 bit name r/w description default 7-0 dscp[47:40] r/w 0000_0000 register 99 (0x63): tos priority control register 3 bit name r/w description default 7-0 dscp[39:32] r/w 0000_0000 register 100 (0x64): tos priority control register 4 bit name r/w description default 7-0 dscp[31:24] r/w 0000_0000 register 101 (0x65): tos priority control register 5 bit name r/w description default 7-0 dscp[23:16] r/w 0000_0000 register 102 (0x66): tos priority control register 6 bit name r/w description default 7-0 dscp[15:8] r/w 0000_0000 register 103 (0x67): tos priority control register 7 bit name r/w description default 7-0 dscp[7:0] r/w 0000_0000
micrel, inc. KS8993F/fl june 2009 76 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 registers 104 to 109 define the switching engine?s mac address. this 48-bit address is used as the source address for mac pause control frames. register 104 (0x68): mac address register 0 bit name r/w description default 7-0 maca[47:40] r/w 0x00 register 105 (0x69): mac address register 1 bit name r/w description default 7-0 maca[39:32] r/w 0x10 register 106 (0x6a): mac address register 2 bit name r/w description default 7-0 maca[31:24] r/w 0xa1 register 107 (0x6b): mac address register 3 bit name r/w description default 7-0 maca[23:16] r/w 0xff register 108 (0x6c): mac address register 4 bit name r/w description default 7-0 maca[15:8] r/w 0xff register 109 (0x6d): mac address register 5 bit name r/w description default 7-0 maca[7:0] r/w 0xff use registers 110 and 111 to read or write data to the static mac address table, vlan table, dynamic mac address table, or the mib counters. register 110 (0x6e): indirect access control 0 bit name r/w description default 7-5 reserved r/w reserved 000 4 read high write low r/w = 1, read cycle = 0, write cycle 0 3-2 table select r/w 00 = static mac address table selected 01 = vlan table selected 10 = dynamic mac address table selected 11 = mib counter selected 00 1-0 indirect address high r/w bit [9-8] of indirect address 00 register 111 (0x6f): indirect access control 1 bit name r/w description default 7-0 indirect address low r/w bit [7-0] of indirect address 0000_0000 note: a write to reg. 111 will actually trigger a command. read or write access will be decided by bit 4 of reg. 110.
micrel, inc. KS8993F/fl june 2009 77 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 register 112 (0x70): indirect data register 8 bit name r/w description default 68-64 indirect data r/w bit 68-64 of indirect data 0_0000 register 113 (0x71): indirect data register 7 bit name r/w description default 63-56 indirect data r/w bit 63-56 of indirect data 0000_0000 register 114 (0x72): indirect data register 6 bit name r/w description default 55-48 indirect data r/w bit 55-48 of indirect data 0000_0000 register 115 (0x73): indirect data register 5 bit name r/w description default 47-40 indirect data r/w bit 47-40 of indirect data 0000_0000 register 116 (0x74): indirect data register 4 bit name r/w description default 39-32 indirect data r/w bit 39-32 of indirect data 0000_0000 register 117 (0x75): indirect data register 3 bit name r/w description default 31-24 indirect data r/w bit 31-24 of indirect data 0000_0000 register 118 (0x76): indirect data register 2 bit name r/w description default 23-16 indirect data r/w bit 23-16 of indirect data 0000_0000 register 119 (0x77): indirect data register 1 bit name r/w description default 15-8 indirect data r/w bit 15-8 of indirect data 0000_0000 register 120 (0x78): indirect data register 0 bit name r/w description default 7-0 indirect data r/w bit 7-0 of indirect data 0000_0000 do not write/read to/from registers 121 to 127. doing so may prevent proper operation. micrel internal testing only register 121 (0x79): digital testing status 0 bit name r/w description default 7-0 factory testing ro reserved qm_split status 0x00 register 122 (0x7a): digital testing status 1 bit name r/w description default
micrel, inc. KS8993F/fl june 2009 78 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 7-0 factory testing ro reserved dbg[7:0] 0x00 register 123 (0x7b): digital testing control 0 bit name r/w description default 7-0 factory testing r/w reserved dbg[12:8] 0x00 register 124 (0x7c): digital testing control 1 bit name r/w description default 7-0 factory testing r/w reserved 0x00 register 125 (0x7d): analog testing control 0 bit name r/w description default 7-0 factory testing r/w reserved 0x00 register 126 (0x7e): analog testing control 1 bit name r/w description default 7-0 factory testing r/w reserved 0x00 register 127 (0x7f): analog testing status bit name r/w description default 7-0 factory testing ro reserved 0x00 4.5 static mac address table the KS8993F has both a static and a dynamic mac address table. when a destination address (da) look up is requested, both tables are searched to make a packet forwarding decision. when a source address (sa) look up is requested, only the dynamic table is searched for aging, migr ation and learning purposes. the static da look up result will have precedence over the dynamic da look up result. if there is a da match in both tables, the result from the static table will be used. the static table can be accessed and controlled by an external processor via the smi, spi and i2c interfaces. the external processor performs all additi on, modification and deletion of static mac table entries. these entries in the static mac table will not be aged out by the KS8993F.
micrel, inc. KS8993F/fl june 2009 79 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 table 10: format of static mac table (8 entries) bit name r/w description default 57-54 fid r/w filter vlan id, representing one of the 16 active vlans 0000 53 use fid r/w = 1, use (fid+mac) to look up in static table = 0, use mac only to look up in static table 0 52 override r/w = 1, override port setting ?transmit enable=0? or ?receive enable=0? setting. = 0, no override 0 51 valid r/w = 1, this entry is valid, the look up result will be used = 0, this entry is not valid 0 50-48 forwarding ports r/w these 3 bits control the forwarding port(s): 001, forward to port 1 010, forward to port 2 100, forward to port 3 011, forward to port 1 and port 2 110, forward to port 2 and port 3 101, forward to port 1 and port 3 111, broadcasting (excluding the ingress port) 000 47-0 mac address r/w 48 bits mac address 0x0000_0000_0000 examples: 1) static address table read (read the 2 nd entry) write to reg. 110 with 0x10 (read static table selected) write to reg. 111 with 0x01 (trigger the read operation) then read reg. 113 (57-56) read reg. 114 (55-48) read reg. 115 (47-40) read reg. 116 (39-32) read reg. 117 (31-24) read reg. 118 (23-16) read reg. 119 (15-8) read reg. 120 (7-0) 2) static address table write (write the 8 th entry) write reg. 113 (57-56) write reg. 114 (55-48) write reg. 115 (47-40) write reg. 116 (39-32) write reg. 117 (31-24) write reg. 118 (23-16) write reg. 119 (15-8) write reg. 120 (7-0) write to reg. 110 with 0x00 (write static table selected) write to reg. 111 with 0x07 (trigger the write operation) 4.6 vlan table
micrel, inc. KS8993F/fl june 2009 80 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 vlan table is used to do vlan table look up. if 802.1q vl an mode is enabled (register 5, bit 7 = 1), this table will be used to retrieve the vlan information that is associated with the ingress packet. this information includes fid (filter id), vid (vlan id), and vlan membership as described below: table 11: format of static vlan table (16 entries) bit name r/w description default 19 valid r/w = 1, the entry is valid = 0, entry is invalid 1 18-16 membership r/w specify which ports are members of the vlan. if a da look up fails (no match in both static and dynamic tables), the packet associated with this vlan will be forwarded to ports specified in this field. e.g. 101 means port 3 and 1 are in this vlan. 111 15-12 fid r/w filter id. KS8993F supports 16 active vlans represented by these four bit fields. fid is the mapped id. if 802.1q vlan is enabled, the look up will be based on fid+da and fid+sa. 0x0 11-0 vid r/w ieee 802.1q 12 bits vlan id 0x001 if 802.1q vlan mode is enabled, KS8993F will assign a vid to every ingress packet. if the packet is untagged or tagged with a null vid, the packet is assigned with the default port vid of the ingress port. if the packet is tagged with non null vid, the vid in the tag will be used. the look up proce ss will start from the vlan table look up. if the vid is not valid, the packet will be dropped and no address learning will take place. if the vid is valid, the fid is retrieved. the fid+da and fid+sa lookups are performed. the fid+da look up determines the forwarding ports. if fid+da fails, the packet will be broadcast to all the members (excluding the ingress port) of the vlan. if fid+sa fails, the fid+sa will be learned. examples: 1) vlan table read (read the 3 rd entry) write to reg. 110 with 0x14 (read vlan table selected) write to reg. 111 with 0x02 (trigger the read operation) then read reg. 118 (vlan table bits 19-16) read reg. 119 (vlan table bits 15-8) read reg. 120 (vlan table bits 7-0) 2) vlan table write (write the 7 th entry) write to reg. 118 (vlan table bits 19-16) write to reg. 119 (vlan table bits 15-8) write to reg. 120 (vlan table bits 7-0) write to reg. 110 with 0x04 (write vlan table selected) write to reg. 111 with 0x06 (trigger the write operation) 4.7 dynamic mac address table this table is read only. the table contents are maintained by KS8993F only.
micrel, inc. KS8993F/fl june 2009 81 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 table 12: format of dynamic mac table (1k entries) bit name r/w description default 71 data not ready ro = 1, entry is not ready, retry until this bit is set to 0 = 0, entry is ready 70-67 reserved ro reserved 66 mac empty ro = 1, there is no valid entry in the table = 0, there are valid entries in the table 1 65-56 no of valid entries ro indicates how many valid entries in the table 0x3ff means 1 k entries 0x001 means 2 entries 0x000 and bit 66 = 0 means 1 entry 0x000 and bit 66 = 1 means 0 entry 00_0000_0000 55-54 time stamp ro 2 bits counter for internal aging 53-52 source port ro the source port where fid+mac is learned 00, port 1 01, port 2 10, port 3 00 51-48 fid ro filter id 0x0 47-0 mac address ro 48 bits mac address 0x0000_0000_0000 example: dynamic mac address table read (read the 1 st entry and retrieve the mac table size) write to reg. 110 with 0x18 (read dynamic table selected) write to reg. 111 with 0x00 (trigger the read operation) then read reg. 112 (71-64) // if bit 71 = 1, restart (reread) from this register read reg. 113 (63-56) read reg. 114 (55-48) read reg. 115 (47-40) read reg. 116 (39-32) read reg. 117 (31-24) read reg. 118 (23-16) read reg. 119 (15-8) read reg. 120 (7-0) 4.8 mib (management information base) counters the KS8993F provides 34 mib counters per port. these counters are used to monitor the port activity for network management. the mib counters have two format groups: ?per port? and ?all port dropped packet?.
micrel, inc. KS8993F/fl june 2009 82 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 table 13: format of ?per port? mib counters bit name r/w description default 31 reserve ro reserve 0 30 count valid ro = 1, counter value is valid = 0, counter value is not valid 0 29-0 counter values ro counter value 0 ?per port? mib counters are read using indirect memory access. the base address offsets and address ranges for all three ports are: port 1 : base is 0x00 and range is (0x00-0x1f) port 2 : base is 0x20 and range is (0x20-0x3f) port 3 : base is 0x40 and range is (0x40-0x5f) port 1?s ?per port? mib counters indirect memory offsets are shown in the following table: table 14: port 1?s ?per port? mib counters indirect memory offsets offset counter name description 0x0 rxloprioritybyte rx lo-priority (default) octet count including bad packets 0x1 rxhiprioritybyte rx hi-priority octet count including bad packets 0x2 rxundersizepkt rx undersize packets w/ good crc 0x3 rxfragments rx fragment packets w/ bad crc, symbol errors or alignment errors 0x4 rxoversize rx oversize packets w/ good crc (max: 1536 or 1522 bytes) 0x5 rxjabbers rx packets longer than 1522 bytes w/ either crc errors, alignment errors, or symbol errors. (depends on max packet size setting). 0x6 rxsymbolerror rx packets w/ invalid data symbol and legal packet size. 0x7 rxcrcerror rx packets within (64,1522) bytes w/ an integral number of bytes and a bad crc (upper limit depends on max packet size setting). 0x8 rxalignmenterror rx packets within (64,1522) bytes w/ a non-integral number of bytes and a bad crc (upper limit depends on max packet size setting). 0x9 rxcontrol8808pkts the number of mac control frames received by a port with 88-08h in ethertype field. 0xa rxpausepkts the number of pause frames received by a port. pause
micrel, inc. KS8993F/fl june 2009 83 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 frame is qualified with ethertype (88-08h), da, control opcode (00-01), data l ength (64b min), and a valid crc 0xb rxbroadcast rx good broadcast packets (not including error broadcast packets or valid multicast packets) 0xc rxmulticast rx good multicast packets (not including mac control frames, error multicast packets or valid broadcast packets) 0xd rxunicast rx good unicast packets 0xe rx64octets total rx packets (bad packets included) that were 64 octets in length 0xf rx65to127octets total rx packets (bad packets included) that are between 65 and 127 octets in length 0x10 rx128to255octets total rx packets (bad packets included) that are between 128 and 255 octets in length 0x11 rx256to511octets total rx packets (bad packets included) that are between 256 and 511 octets in length 0x12 rx512to1023octets total rx packets (bad packets included) that are between 512 and 1023 octets in length 0x13 rx1024to1522octets total rx packets (bad packets included) that are between 1024 and 1522 octets in length (upper limit depends on max packet size setting). 0x14 txloprioritybyte tx lo-priority good octet count, including pause packets 0x15 txhiprioritybyte tx hi-priority good octet count, including pause packets 0x16 txlatecollision the number of times a collision is detected later than 512 bit- times into the tx of a packet. 0x17 txpausepkts the number of pause frames transmitted by a port 0x18 txbroadcastpkts tx good broadcast packets (not including error broadcast or valid multicast packets) 0x19 txmulticastpkts tx good multicast packets (not including error multicast packets or valid broadcast packets) 0x1a txunicastpkts tx good unicast packets 0x1b txdeferred tx packets by a port for which the 1st tx attempt is delayed due to the busy medium 0x1c txtotalcollision tx total collision, half duplex only 0x1d txexcessivecollision a count of frames for which tx fails due to excessive collisions
micrel, inc. KS8993F/fl june 2009 84 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 0x1e txsinglecollision successfully tx frames on a port for which tx is inhibited by exactly one collision 0x1f txmultiplecollision successfully tx frames on a port for which tx is inhibited by more than one collision table 15: format of ?all port dropped packet? mib counters bit name r/w description default 30-16 reserved n/a reserved n/a 15-0 counter values ro counter value 0 ?all port dropped packet? mib counters are read using indirect memory access. the address offsets for these counters are shown in the following table: table 16: ?all port dropped packet? mib counters indirect memory offsets offset counter name description 0x100 port1 tx drop packets tx packets dropped due to lack of resources 0x101 port2 tx drop packets tx packets dropped due to lack of resources 0x102 port3 tx drop packets tx packets dropped due to lack of resources 0x103 port1 rx drop packets rx packets dropped due to lack of resources 0x104 port2 rx drop packets rx packets dropped due to lack of resources 0x105 port3 rx drop packets rx packets dropped due to lack of resources examples: 1) mib counter read (read port 1 ?rx64octets? counter) write to reg. 110 with 0x1c (read mib counters selected) write to reg. 111 with 0x0e (trigger the read operation) then read reg. 117 (counter value 30-24) // if bit 30 = 0, restart (reread) from this register read reg. 118 (counter value 23-16) read reg. 119 (counter value 15-8) read reg. 120 (counter value 7-0) 2) mib counter read (read port 2 ?rx64octets? counter) write to reg. 110 with 0x1c (read mib counter selected) write to reg. 111 with 0x2e (trigger the read operation) then read reg. 117 (counter value 30-24) // if bit 30 = 0, restart (reread) from this register read reg. 118 (counter value 23-16) read reg. 119 (counter value 15-8) read reg. 120 (counter value 7-0) 3) mib counter read (read ?p ort1 tx drop packets? counter)
micrel, inc. KS8993F/fl june 2009 85 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 write to reg. 110 with 0x1d (read mib counter selected) write to reg. 111 with 0x00 (trigger the read operation) then read reg. 119 (counter value 15-8) read reg. 120 (counter value 7-0) notes: 1. both ?per port? and ?all port dropped packet? mib counters do not indicate overflow. the application must keep track of overflow conditions for these counters. 2. ?all port dropped packet? mib counters do not indicate if count is valid. the application must keep track of valid conditions for these counters. 3. to read out all the counters, the best performance over the spi bus is (160+3)*8*200 = 260 ms, where there are 160 registers, 3 overheads, 8 clocks per access, at 5 mhz . in the heaviest condition, the counters will overflow in 2 minutes. it is recommended that the software read all the counters at least every 30 seconds. 4. a high performance spi master is recommended to prevent counters overflow. 5. ?per port? mib counters are designed as ?read clear?. these counters will be cleared after they are read. 6. ?all port dropped packet? mib counters are not cleared after they are read.
micrel, inc. KS8993F/fl june 2009 86 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 5 electrical sp ecifications stresses greater than those listed in this table may cause permanent damage to the device. operation of the device at these or any other conditions above those specified in the oper ating sections of this specification is not implied. maximum conditions for extended periods may affect reliabilit y. unused inputs must always be tied to an appropriate logic voltage level. 5.1 absolute maximum ratings storage temperature (t s ) ??????..? -55 c to +150 c supply voltages vdda, vddap, vddc?????????.??.............-0.5v to +2.4 v supply voltages vddatx, vddarx, vddio ?..???????.??.............-0.5v to +4.0 v all inputs ???????????..?...-0.5v to +4.0 v all outputs ??????????..?....-0.5v to +4.0 v 5.2 recommended operating conditions parameter symbol min typ max unit supply voltages vdda, vddap, vddc 1.710 1.8 1.890 v vddatx, vddarx, vddio 3.135 3.3 3.465 v ambient operating temperature ta 0 70 c maximum junction temperature tj 125 c thermal resistance junction to ambient ja 32 c/w
micrel, inc. KS8993F/fl june 2009 87 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 5.3 electrical characteristics parameter sym test condition min typ max unit supply current (including tx output driver current for KS8993F device only) 100base-tx operation (total) a 100base-tx i dd vdda, vddap, vddc = 1.8v vddatx,vddarx,vddio = 3.3v 0.10 0.16 a 10base-t operation (total) a 10base-t i dd vdda, vddap, vddc = 1.8v vddatx,vddarx,vddio = 3.3v 0.07 0.19 a 100base-tx (analog) i da tbd a 100base-tx (digital) i dd tbd a 10base-t(analog) i dx tbd a 10base-t(digital) i dx tbd a ttl inputs input high voltage vih 2.0 v input low voltage v il 0.8 v input current i in v in = gnd ~ vddio -10 10 a ttl outputs output high voltage v oh i oh = -4 ma 2.4 v output low voltage v ol i ol = 4 ma 0.4 v output tri-state leakage |i oz | 10 a 100base-tx transmit (measured differentially after 1:1 transformer) peak differential output voltage v o 100 termination on the differential output. 0.95 1.05 v output voltage imbalance v imb 100 termination on the differential output 2 % rise/fall time t r /t f 3 5 ns rise/fall time imbalance 0 0.5 ns 100base-tx transmit (measured differentially after 1:1 transformer) duty cycle distortion 0.5 ns overshoot 5 % reference voltage of iset v set 0.5 v output jitters peak to peak 0.7 1.4 ns 10base-t receive squelch threshold v sq 5 m z square wave 400 mv
micrel, inc. KS8993F/fl june 2009 88 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 10base-t transmit (measured differentially after 1:1 transformer ) peak differential output voltage v p 100 termination on the differential output. 2.3 v jitters added 100 termination on the differential output. + 8 ns rise/fall time 25 ns 5.4 100base-fx electrical specification parameter sym test condition min typ max unit supply current (including fx output driver current) 100base-fx operation - total tbd a 100base-fx (transmitter) i dx tbd a 100base-fx (analog) i da tbd a 100base-fx (digital) i dd tbd a 100base-fx transmit peak differential output voltage v o 100 termination on the differential output. 0.95 1.05 v output voltage imbalance v imb 100 termination on the differential output 2 % rise/fall time t r /t f 3 5 ns rise/fall time imbalance 0 0.5 ns fiber detection pin (fxsd) fiber turn on fxon 100base-fx mode 1.0 1.8 v fiber signal detect fxsd 100base-fx mode 2.2 v
micrel, inc. KS8993F/fl june 2009 89 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6 timing specifications 6.1 eeprom timing figure 12: eeprom interface input timing diagram scl sda tcyc1 ts1 th1 receive timing figure 13: eeprom interface output timing diagram scl sda tcyc1 transmit timing tov1 table 17: eeprom timing parameters timing parameter description min typ max unit tcyc1 clock cycle 16384 ns ts1 setup time 20 ns th1 hold time 20 ns tov1 output valid 4096 4112 4128 ns
micrel, inc. KS8993F/fl june 2009 90 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.2 sni timing figure 14: sni input timing diagram tcyc2 ts2 th2 mtxc mtxen mtxd[0] receive timing figure 15: sni output timing diagram mrxc mrxdv tcyc2 transmit timing tov2 mrxd[0] mcol table 18: sni timing parameters timing parameter description min typ max unit tcyc2 clock cycle 100 ns ts2 setup time 10 ns th2 hold time 0 ns tov2 output valid 0 3 6 ns
micrel, inc. KS8993F/fl june 2009 91 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.3 mii timing 6.3.1 mac mode mii timing figure 16: mac mode mii timing - data received from mii mrxclk mtxen mtxer mtxd[3:0] tcyc3 ts3 th3 receive timing figure 17: mac mode mii timing - data transmitted to mii mtxclk mrxdv mrxd[3:0] tcyc3 transmit timing tov3 table 19: mac mode mii timing parameters timing parameter description min typ max unit tcyc3 (100base-tx) clock cycle 100base-tx 40 ns tcyc3 (10base-t) clock cycle 10base-t 400 ns ts3 setup time 10 ns th3 hold time 5 ns tov3 output valid 7 11 16 ns
micrel, inc. KS8993F/fl june 2009 92 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.3.2 phy mode mii timing figure 18: phy mode mii timing ? data received from mii mtxclk mtxen mtxer mtxd[3:0] tcyc4 ts4 th4 receive timing figure 19: phy mode mii timing - data transmitted to mii mrxclk mrxdv mrxd[3:0] tcyc4 transmit timing tov4 table 20: phy mode mii timing parameters timing parameter description min typ max unit tcyc4 (100base-tx) clock cycle 100base-tx 40 ns tcyc4 (10base-t) clock cycle 10base-t 400 ns ts4 setup time 10 ns th4 hold time 0 ns tov4 output valid 18 25 28 ns 6.3.3 spi timing
micrel, inc. KS8993F/fl june 2009 93 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 20: spi input timing spiq spic spid spis_n high impedance msb tchsl tslch tdvch tchdx tdldh tdhdl lsb tclch tchcl tshch tchsh tshsl table 21: spi input timing parameters timing parameter description min max units fc clock frequency 5 mhz tchsl spis_n inactive hold time 90 ns tslch spis_n active setup time 90 ns tchsh spis_n active hold time 90 ns tshch spis_n inactive setup time 90 ns tshsl spis_n deselect time 100 ns tdvch data input setup time 20 ns tchdx data input hold time 30 ns tclch clock rise time 1 us tchcl clock fall time 1 us tdldh data input rise time 1 us tdhdl data input fall time 1 us
micrel, inc. KS8993F/fl june 2009 94 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 figure 21: spi output timing spid spic spiq spis_n tqlqh tqhql lsb tch tcl tshqz tclqv tclqx table 22: spi output timing parameters timing parameter description min max units fc clock frequency 5 mhz tclqx spiq hold time 0 0 ns tclqv clock low to spiq valid 60 ns tch clock high time 90 ns tcl clock low time 90 tqlqh spiq rise time 50 ns tqhql spiq fall time 50 ns tshqz spiq disable time 100 ns
micrel, inc. KS8993F/fl june 2009 95 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.3.4 mdc/mdio timing figure 22: mdc/mdio timing for miim and smi interfaces min. typ. max. t p mdc period 60ns t wl mdc pulse width 40% 60% t wh mdc pulse width 40% 60% t md1 mdio setup to mdc (mdio as input) 10ns t md2 mdio hold after mdc (mdio as input) 10ns t md3 mdc to mdio valid (mdio as output) 0ns 20ns t md1 valid data mdio (into chip) valid data mdc t md2 mdio (out of chip) valid data t md3 t wl t wh t p
micrel, inc. KS8993F/fl june 2009 96 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.3.5 auto negotiation timing figure 23: auto negotiation timing t pw min. typ. max. t btb flp burst to flp burst 8ms 16ms 24ms t flpw flp burst width 2ms t pw clock/data pulse width 100ns t ctd clock pulse to data pulse 55.5us 64us 69.5us t ctc clock pulse to clock pulse 111us 128us 139us number of clock/data pulses per burst 17 33 tx+/tx- clock pulse data pulse clock pulse t pw t ctd t ctc t flpw t btb tx+/tx- data pulse flp burst flp burst
micrel, inc. KS8993F/fl june 2009 97 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.4 reset timing the KS8993F should be powered up with the vdd core voltages applied before the vddio voltage. in the worst case, both vdd core and vddio voltages can be applied simultaneously. additional, reset timing requirement are su mmarized in the following figure and table. figure 24: reset timing tsr tcs tch trc supply voltage rst_n strap-in value strap-in / output pin table 23: reset timing parameters parameter description min max units t sr stable supply voltages to reset high 10 ms t cs configuration setup time 50 ns t ch configuration hold time 50 ns t rc reset to strap-in pin output 50 us after the de-assertion of reset, it is recommended to wait a minimum of 100 us before starting programming on the managed interface (i2c slave, spi slave, smi, miim).
micrel, inc. KS8993F/fl june 2009 98 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 6.5 reset circuit the reset circuit in figure 25 is recommended for powering up the KS8993F if reset is triggered only by the power supply. figure 25: recommended reset circuit KS8993F vcc rst d1 d1: 1n4148 r 10k c 10uf the reset circuit in figure 26 is recommended for applications where reset is driven by another device (e.g., cpu, fpga, etc),. at power-on-reset, r, c and d1 provide the necessary ramp rise time to reset the KS8993F device. the rst_out_n from cpu/fpga provides the warm reset after power up. figure 26: recommended reset circuit for interfacing with cpu/fpga reset output KS8993F cpu/fpga vcc c 10uf r 10k rst rst_out_n d1 d2 d1, d2: 1n4148
micrel, inc. KS8993F/fl june 2009 99 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 7 selection of isolation transformer an 1:1 isolation transformer is required at the line interface. an isolation transformer with integrated common-mode choke is recommended for exceeding fcc requirements. the following table gives recommended transformer characteristics. table 24: transformer selection criteria parameter value test condition turns ratio 1 ct : 1 ct open-circuit inductance (min.) 350 uh 100 mv, 100 khz, 8 ma leakage inductance (max.) 0.4 uh 1 mhz (min.) inter-winding capacitance (max.) 12 pf d.c. resistance (max.) 0.9 ohms insertion loss (max.) 1.0 db 0-65 mhz hipot (min.) 1500 vrms the following are recommended transformers for the KS8993F. table 25: qualified single port magnetic magnetic manufacturer part number auto mdi-x pulse h1102 yes pulse (low cost) h1260 yes transpower hb726 yes bel fuse s558-5999-u7 yes delta lf8505 yes lankom lf-h41s yes 8 selection of crystal/oscillator a crystal or oscillator with the following typical characteristics is recommended. table 26: crystal/oscillator selection criteria charateristics value units frequency 25.00000 mhz frequency tolerance (max) 50 ppm load capacitance (max) 20 pf series resistance 25
micrel, inc. KS8993F/fl june 2009 100 m9999-062509 hbwhelp@micrel.com or (408) 955-1690 9 package information figure 27: 128-pin pqfp package outline drawing micrel, inc. 2180 fortune drive san jose, ca 95131 usa tel +1 (408) 944-0800 fax +1 (408) 474-1000 web http:/ www.micrel.com the information furnished by micrel in this data sheet is belie ved to be accurate and reliable. however, no responsibility is a ssumed by micrel for its use. micrel reserves the right to change circuitry and specifications at any time without notification to the customer. micrel products are not designed or authorized for use as components in life support appliances, devices or systems where malfu nction of a product can reasonably be expected to result in personal injury. life support devices or systems are devices or systems that (a) are in tended for surgical implant into the body or (b) support or sustain life, and whose failure to perform can be reasonably expected to result in a significant injury to the user. a purchaser?s use or sale of mi crel products for use in life support applia nces, devices or systems is a purchaser?s own risk and purchaser agrees to fully indemn ify micrel for any damages resu lting from such use or sale. ? 2006 micrel, incorporated.


▲Up To Search▲   

 
Price & Availability of KS8993F

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X